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 /gtk/xdgmime/xdgmimemagic.c | |
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)
Diffstat (limited to 'gtk/xdgmime/xdgmimemagic.c')
-rw-r--r-- | gtk/xdgmime/xdgmimemagic.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |