* lib/fputsx.c: Compare the result of fgets() with the provided

buffer instead of NULL.
This commit is contained in:
nekral-guest
2009-06-12 20:20:45 +00:00
parent ae00a3579c
commit bbb2a1522f
2 changed files with 7 additions and 2 deletions

View File

@ -45,7 +45,7 @@
char *ep;
while (cnt > 0) {
if (fgets (cp, cnt, f) == 0) {
if (fgets (cp, cnt, f) != cp) {
if (cp == buf) {
return 0;
} else {