diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-04-30 04:21:42 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-04-30 04:21:42 +0000 |
commit | 0baea96ec6d50591db7f58f6329f9023b2243297 (patch) | |
tree | 8c40a43447f9e5f9a8388f31a10ddb706d839126 | |
parent | 6631943388cd7da4e9abefbf73e31c9be5840a52 (diff) | |
download | gtk+-0baea96ec6d50591db7f58f6329f9023b2243297.tar.gz |
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)
-rw-r--r-- | gtk/xdgmime/ChangeLog | 5 | ||||
-rw-r--r-- | gtk/xdgmime/xdgmimemagic.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gtk/xdgmime/ChangeLog b/gtk/xdgmime/ChangeLog index 61a14565b1..7ac489eaf3 100644 --- a/gtk/xdgmime/ChangeLog +++ b/gtk/xdgmime/ChangeLog @@ -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) diff --git a/gtk/xdgmime/xdgmimemagic.c b/gtk/xdgmime/xdgmimemagic.c index f368e40834..1a6e6b9001 100644 --- a/gtk/xdgmime/xdgmimemagic.c +++ b/gtk/xdgmime/xdgmimemagic.c @@ -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; |