aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);