summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2010-09-23 12:40:24 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2010-09-23 12:40:24 (GMT)
commit81cd471c86dafffd89d517e5b9dcf2be3c16b1e5 (patch) (side-by-side diff)
treeaaa73752a820aa2a621b4434cd7232aa7d493792
parenta70b48462860546915aa3f71d0fb16b871ef2f62 (diff)
downloadmailutils-81cd471c86dafffd89d517e5b9dcf2be3c16b1e5.tar.gz
mailutils-81cd471c86dafffd89d517e5b9dcf2be3c16b1e5.tar.bz2
imap4d: bugfix:
* imap4d/fetch.c (fetch_io): Fix a memory allocation error.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--imap4d/fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/imap4d/fetch.c b/imap4d/fetch.c
index ef7d6ce..0b71487 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.