diff options
Diffstat (limited to 'newlib/libc/stdio/fvwrite.c')
-rw-r--r-- | newlib/libc/stdio/fvwrite.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/stdio/fvwrite.c b/newlib/libc/stdio/fvwrite.c index fe0e80111..aaf3a192e 100644 --- a/newlib/libc/stdio/fvwrite.c +++ b/newlib/libc/stdio/fvwrite.c @@ -125,7 +125,8 @@ __sfvwrite (fp, uio) { /* must be asprintf family */ unsigned char *ptr; int curpos = (fp->_p - fp->_bf._base); - ptr = (unsigned char *)_realloc_r (fp->_data, fp->_bf._base, + ptr = (unsigned char *)_realloc_r (_REENT, + fp->_bf._base, curpos + len); if (!ptr) goto err; |