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:
committed by
Matthias Clasen
parent
6631943388
commit
0baea96ec6
@ -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>
|
2004-03-12 Morten Welinder <terra@gnome.org>
|
||||||
|
|
||||||
* *.c: Make sure to include <config.h> (#137001)
|
* *.c: Make sure to include <config.h> (#137001)
|
||||||
|
|||||||
@ -196,7 +196,7 @@ _xdg_mime_magic_read_a_number (FILE *magic_file,
|
|||||||
{
|
{
|
||||||
/* LONG_MAX is about 20 characters on my system */
|
/* LONG_MAX is about 20 characters on my system */
|
||||||
#define MAX_NUMBER_SIZE 30
|
#define MAX_NUMBER_SIZE 30
|
||||||
char number_string[MAX_NUMBER_SIZE];
|
char number_string[MAX_NUMBER_SIZE + 1];
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
int c;
|
int c;
|
||||||
long retval = -1;
|
long retval = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user