forked from KolibriOS/kolibrios
newlib: update
git-svn-id: svn://kolibrios.org@6099 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -48,7 +48,7 @@ _DEFUN(__swsetup_r, (ptr, fp),
|
||||
{
|
||||
ptr->_errno = EBADF;
|
||||
fp->_flags |= __SERR;
|
||||
return EOF;
|
||||
return EOF;
|
||||
}
|
||||
if (fp->_flags & __SRD)
|
||||
{
|
||||
@@ -67,7 +67,7 @@ _DEFUN(__swsetup_r, (ptr, fp),
|
||||
* A string I/O file should not explicitly allocate a buffer
|
||||
* unless asprintf is being used.
|
||||
*/
|
||||
if (fp->_bf._base == NULL
|
||||
if (fp->_bf._base == NULL
|
||||
&& (!(fp->_flags & __SSTR) || (fp->_flags & __SMBF)))
|
||||
__smakebuf_r (ptr, fp);
|
||||
|
||||
|
Reference in New Issue
Block a user