2006-03-15 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/wsetup.c (__swsetup): Don't make a buffer for a string I/O file that isn't using the asprintf family.
This commit is contained in:
parent
f02400f7c9
commit
490cfb83e9
|
@ -1,3 +1,8 @@
|
||||||
|
2006-03-15 Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
|
* libc/stdio/wsetup.c (__swsetup): Don't make a buffer
|
||||||
|
for a string I/O file that isn't using the asprintf family.
|
||||||
|
|
||||||
2006-03-07 Eric Blake <ebb9@byu.net>
|
2006-03-07 Eric Blake <ebb9@byu.net>
|
||||||
|
|
||||||
* libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
|
* libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
|
||||||
|
|
|
@ -58,9 +58,11 @@ _DEFUN(__swsetup, (fp),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Make a buffer if necessary, then set _w.
|
* Make a buffer if necessary, then set _w.
|
||||||
|
* A string I/O file should not explicitly allocate a buffer
|
||||||
|
* unless asprintf is being used.
|
||||||
*/
|
*/
|
||||||
/* NOT NEEDED FOR CYGNUS SPRINTF ONLY jpg */
|
if (fp->_bf._base == NULL
|
||||||
if (fp->_bf._base == NULL)
|
&& (!(fp->_flags & __SSTR) || (fp->_flags & __SMBF)))
|
||||||
__smakebuf (fp);
|
__smakebuf (fp);
|
||||||
|
|
||||||
if (fp->_flags & __SLBF)
|
if (fp->_flags & __SLBF)
|
||||||
|
|
Loading…
Reference in New Issue