mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-23 15:24:08 +00:00
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:
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>
|
||||
|
||||
* *.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 */
|
||||
#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;
|
||||
|
Loading…
Reference in New Issue
Block a user