Commit 75226e9c 75226e9c4464230891bbf8eb7dd6ef81185093ac by Sergey Poznyakoff

(mu_stream_vprintf): Bugfix.

1 parent 23b0457b
...@@ -515,7 +515,7 @@ mu_stream_vprintf (mu_stream_t os, mu_off_t *poff, const char *fmt, va_list ap) ...@@ -515,7 +515,7 @@ mu_stream_vprintf (mu_stream_t os, mu_off_t *poff, const char *fmt, va_list ap)
515 free (buf); 515 free (buf);
516 return ENOMEM; 516 return ENOMEM;
517 } 517 }
518 newbuf = realloc (buf, buflen); 518 newbuf = realloc (buf, newlen);
519 if (newbuf == NULL) 519 if (newbuf == NULL)
520 { 520 {
521 free (buf); 521 free (buf);
......