Make sure the static string is long enough. (#136323, Morten Welinder)

Fri Apr 30 00:19:11 2004  Matthias Clasen  <maclas@gmx.de>

	* xdgmimemagic.c (_xdg_mime_magic_read_a_number): Make sure
	the static string is long enough.  (#136323, Morten Welinder)
This commit is contained in:
Matthias Clasen 2004-04-30 04:21:42 +00:00 committed by Matthias Clasen
parent 6631943388
commit 0baea96ec6
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Fri Apr 30 00:19:11 2004 Matthias Clasen <maclas@gmx.de>
* xdgmimemagic.c (_xdg_mime_magic_read_a_number): Make sure
the static string is long enough. (#136323, Morten Welinder)
2004-03-12 Morten Welinder <terra@gnome.org>
* *.c: Make sure to include <config.h> (#137001)

View File

@ -196,7 +196,7 @@ _xdg_mime_magic_read_a_number (FILE *magic_file,
{
/* LONG_MAX is about 20 characters on my system */
#define MAX_NUMBER_SIZE 30
char number_string[MAX_NUMBER_SIZE];
char number_string[MAX_NUMBER_SIZE + 1];
int pos = 0;
int c;
long retval = -1;