diff options
author | Not Zed <NotZed@Ximian.com> | 2001-01-29 17:15:03 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-01-29 17:15:03 +0800 |
commit | 1b18f022ca57ebebb272a148b25173d92b2b89c5 (patch) | |
tree | 397923c2f0d83d55078e25552d69e02b6aff07e3 /widgets | |
parent | a5edc8ab732045dacc6d37cdccc298e47b25a0cc (diff) | |
download | gsoc2013-evolution-1b18f022ca57ebebb272a148b25173d92b2b89c5.tar gsoc2013-evolution-1b18f022ca57ebebb272a148b25173d92b2b89c5.tar.gz gsoc2013-evolution-1b18f022ca57ebebb272a148b25173d92b2b89c5.tar.bz2 gsoc2013-evolution-1b18f022ca57ebebb272a148b25173d92b2b89c5.tar.lz gsoc2013-evolution-1b18f022ca57ebebb272a148b25173d92b2b89c5.tar.xz gsoc2013-evolution-1b18f022ca57ebebb272a148b25173d92b2b89c5.tar.zst gsoc2013-evolution-1b18f022ca57ebebb272a148b25173d92b2b89c5.zip |
Always include +1 for the size. 0*2 == 0, so malloc returns NULL, which is
2001-01-29 Not Zed <NotZed@Ximian.com>
* gal/widgets/e-unicode.c (e_utf8_xml1_decode): Always include +1
for the size. 0*2 == 0, so malloc returns NULL, which is not what
we want.
svn path=/trunk/; revision=7885
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/misc/e-unicode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/misc/e-unicode.c b/widgets/misc/e-unicode.c index a74ec7527a..4ea7c2ce58 100644 --- a/widgets/misc/e-unicode.c +++ b/widgets/misc/e-unicode.c @@ -481,7 +481,7 @@ e_utf8_xml1_decode (const gchar *text) g_return_val_if_fail (text != NULL, NULL); - len = strlen (text); + len = strlen (text)+1; /* len * 2 is absolute maximum */ u = d = g_malloc (len * 2); |