diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-09-23 15:40:24 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-09-23 15:40:24 +0300 |
commit | 81cd471c86dafffd89d517e5b9dcf2be3c16b1e5 (patch) | |
tree | aaa73752a820aa2a621b4434cd7232aa7d493792 | |
parent | a70b48462860546915aa3f71d0fb16b871ef2f62 (diff) | |
download | mailutils-81cd471c86dafffd89d517e5b9dcf2be3c16b1e5.tar.gz mailutils-81cd471c86dafffd89d517e5b9dcf2be3c16b1e5.tar.bz2 |
imap4d: bugfix:
* imap4d/fetch.c (fetch_io): Fix a memory allocation error.
-rw-r--r-- | imap4d/fetch.c | 2 |
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); |