aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/providers/imap/camel-imap-command.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 2f5dbaf1ee..fcaa28014e 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2001-01-25 Not Zed <NotZed@Ximian.com>
* tests/folder/test3.c: Changed the subject search to handle case
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) {