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