Commit 48fb45e6 48fb45e67906da7673f50ef47cef0a405ebe6342 by Sergey Poznyakoff

Bugfix.

* libmailutils/imapio/getline.c (mu_imapio_getline): Fix the call to
realloc.
1 parent 326f5d74
...@@ -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;
......