* lib/fputsx.c: Compare the result of fgets() with the provided
buffer instead of NULL.
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user