Skip nulls in putback to don't confuse with EOFs

This commit is contained in:
Andrey A. Chernov 1994-12-19 00:26:20 +00:00
parent 6185408336
commit b63b4cdb92
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5167

View File

@ -77,6 +77,8 @@ int c;
{
if (c == EOF)
c = 0;
else if (c == 0)
return;
if (bp < endpbb)
*bp++ = c;
else