Fix a memory overrun

svn path=/trunk/; revision=5928
This commit is contained in:
Matthias Clasen 2007-11-24 16:24:30 +00:00
parent 08ddf99627
commit ed1afd7772
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-11-24 Matthias Clasen <mclasen@redhat.com>
* tests/base64-test.c: Fix a memory overrun.
2007-11-24 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c: Remove leftover ENABLE_NLS #ifdefs.

View File

@ -24,7 +24,7 @@ test_incremental (gboolean line_break,
guchar *data2;
data2 = g_malloc (length);
text = g_malloc (length * 2);
text = g_malloc (length * 4);
len = 0;
state = 0;