aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-01-29 17:13:17 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-01-29 17:13:17 +0800
commita5edc8ab732045dacc6d37cdccc298e47b25a0cc (patch)
treeebe8d303697577dc9b9bdfe0cc544c3d521fbfff /camel/providers
parentd057619fd675a74c5ddcd986737e17d79e3610d7 (diff)
downloadgsoc2013-evolution-a5edc8ab732045dacc6d37cdccc298e47b25a0cc.tar.gz
gsoc2013-evolution-a5edc8ab732045dacc6d37cdccc298e47b25a0cc.tar.zst
gsoc2013-evolution-a5edc8ab732045dacc6d37cdccc298e47b25a0cc.zip
Include the terminating NUL in the calculated string length. This hit
2001-01-29 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-command.c (imap_command_strdup_vprintf): Include the terminating NUL in the calculated string length. This hit memcheck. svn path=/trunk/; revision=7884
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/imap/camel-imap-command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/providers/imap/camel-imap-command.c b/camel/providers/imap/camel-imap-command.c
index db8cdd29dd..8a713cde8b 100644
--- a/camel/providers/imap/camel-imap-command.c
+++ b/camel/providers/imap/camel-imap-command.c
@@ -530,7 +530,7 @@ imap_command_strdup_vprintf (CamelImapStore *store, const char *fmt,
}
/* Now write out the string */
- op = out = g_malloc (len);
+ op = out = g_malloc (len + 1);
p = start = fmt;
i = 0;
while (*p) {