Bugfix.
* libmailutils/imapio/getline.c (mu_imapio_getline): Fix the call to realloc.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -209,7 +209,7 @@ mu_imapio_getline (struct _mu_imapio *io) | ... | @@ -209,7 +209,7 @@ mu_imapio_getline (struct _mu_imapio *io) |
209 | if (number + 1 > io->_imap_buf_size) | 209 | if (number + 1 > io->_imap_buf_size) |
210 | { | 210 | { |
211 | size_t newsize = number + 1; | 211 | size_t newsize = number + 1; |
212 | void *newp = realloc (&io->_imap_buf_base, newsize); | 212 | void *newp = realloc (io->_imap_buf_base, newsize); |
213 | if (!newp) | 213 | if (!newp) |
214 | return ENOMEM; | 214 | return ENOMEM; |
215 | io->_imap_buf_base = newp; | 215 | io->_imap_buf_base = newp; | ... | ... |
-
Please register or sign in to post a comment