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

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

No files matched your search

+1 -1
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 {