[Pkg-shadow-commits] r3021 - in upstream/trunk: . lib

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Fri Jun 12 20:20:46 UTC 2009


Author: nekral-guest
Date: 2009-06-12 20:20:45 +0000 (Fri, 12 Jun 2009)
New Revision: 3021

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/lib/fputsx.c
Log:
	* lib/fputsx.c: Compare the result of fgets() with the provided
	buffer instead of NULL.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2009-06-12 17:50:24 UTC (rev 3020)
+++ upstream/trunk/ChangeLog	2009-06-12 20:20:45 UTC (rev 3021)
@@ -1,5 +1,10 @@
-2009-06-11  Nicolas François  <nicolas.francois at centraliens.net>
+2009-06-12  Nicolas François  <nicolas.francois at 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 at centraliens.net>
+
 	* lib/gshadow.c: Removed limitation on the length of the gshadow
 	lines.
 	* lib/gshadow.c: Compare the result of fgetsx() with the provided

Modified: upstream/trunk/lib/fputsx.c
===================================================================
--- upstream/trunk/lib/fputsx.c	2009-06-12 17:50:24 UTC (rev 3020)
+++ upstream/trunk/lib/fputsx.c	2009-06-12 20:20:45 UTC (rev 3021)
@@ -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 {




More information about the Pkg-shadow-commits mailing list