diff options
author | Not Zed <NotZed@Ximian.com> | 2001-01-29 17:13:17 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-01-29 17:13:17 +0800 |
commit | a5edc8ab732045dacc6d37cdccc298e47b25a0cc (patch) | |
tree | ebe8d303697577dc9b9bdfe0cc544c3d521fbfff /camel/providers/imap | |
parent | d057619fd675a74c5ddcd986737e17d79e3610d7 (diff) | |
download | gsoc2013-evolution-a5edc8ab732045dacc6d37cdccc298e47b25a0cc.tar gsoc2013-evolution-a5edc8ab732045dacc6d37cdccc298e47b25a0cc.tar.gz gsoc2013-evolution-a5edc8ab732045dacc6d37cdccc298e47b25a0cc.tar.bz2 gsoc2013-evolution-a5edc8ab732045dacc6d37cdccc298e47b25a0cc.tar.lz gsoc2013-evolution-a5edc8ab732045dacc6d37cdccc298e47b25a0cc.tar.xz 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/imap')
-rw-r--r-- | camel/providers/imap/camel-imap-command.c | 2 |
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) { |