summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--imap4d/fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/imap4d/fetch.c b/imap4d/fetch.c
index ef7d6ce8e..0b71487c2 100644
--- a/imap4d/fetch.c
+++ b/imap4d/fetch.c
@@ -731,7 +731,7 @@ fetch_io (mu_stream_t stream, size_t start, size_t size, size_t max)
char *buffer, *p;
size_t total = 0;
offset = start;
- p = buffer = malloc (size + 1);
+ p = buffer = malloc (size + 2);
if (!p)
imap4d_bye (ERR_NO_MEM);

Return to:

Send suggestions and report system problems to the System administrator.