* 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

@ -1,4 +1,9 @@
2009-06-11 Nicolas François <nicolas.francois@centraliens.net> 2009-06-12 Nicolas François <nicolas.francois@centraliens.net>
* lib/fputsx.c: Compare the result of fgets() with the provided
buffer instead of NULL.
2009-06-12 Nicolas François <nicolas.francois@centraliens.net>
* lib/gshadow.c: Removed limitation on the length of the gshadow * lib/gshadow.c: Removed limitation on the length of the gshadow
lines. lines.

View File

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