aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-01-29 17:15:03 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-01-29 17:15:03 +0800
commit1b18f022ca57ebebb272a148b25173d92b2b89c5 (patch)
tree397923c2f0d83d55078e25552d69e02b6aff07e3
parenta5edc8ab732045dacc6d37cdccc298e47b25a0cc (diff)
downloadgsoc2013-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
-rw-r--r--widgets/misc/e-unicode.c2
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);