2005-01-06 Hans-Peter Nilsson <hp@axis.com>

* libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
        bit-test in combination with NULL test.
This commit is contained in:
Jeff Johnston 2005-01-06 20:10:56 +00:00
parent 5cc3f59253
commit 034a3909ae
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-01-06 Hans-Peter Nilsson <hp@axis.com>
* libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
bit-test in combination with NULL test.
2005-01-06 Hans-Peter Nilsson <hp@axis.com>
* README: Fix typo of LGPL. Change "license" to "copyright".

View File

@ -143,7 +143,7 @@ _DEFUN(_ftell_r, (ptr, fp),
if (HASUB (fp))
pos -= fp->_ur;
}
else if (fp->_flags & __SWR && fp->_p != NULL)
else if ((fp->_flags & __SWR) && fp->_p != NULL)
{
/*
* Writing. Any buffered characters cause the