[Pkg-shadow-commits] r2790 - in upstream/trunk: . libmisc

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Fri Apr 24 23:03:15 UTC 2009


Author: nekral-guest
Date: 2009-04-24 23:03:14 +0000 (Fri, 24 Apr 2009)
New Revision: 2790

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/libmisc/console.c
Log:
	* libmisc/console.c: Use a less disturbing construct for splint.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2009-04-24 22:56:42 UTC (rev 2789)
+++ upstream/trunk/ChangeLog	2009-04-24 23:03:14 UTC (rev 2790)
@@ -1,5 +1,9 @@
 2009-04-25  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* libmisc/console.c: Use a less disturbing construct for splint.
+
+2009-04-25  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* libmisc/limits.c: Parse the limits, umask, nice, maxlogin, file
 	limit with getlog() / getulong(). This also means, in case of
 	non-PAM enabled systems, that the umask specified on the GECOS

Modified: upstream/trunk/libmisc/console.c
===================================================================
--- upstream/trunk/libmisc/console.c	2009-04-24 22:56:42 UTC (rev 2789)
+++ upstream/trunk/libmisc/console.c	2009-04-24 23:03:14 UTC (rev 2790)
@@ -68,8 +68,8 @@
 	 */
 
 	if (*cons != '/') {
-		cons = strcpy (buf, cons);
-		while ((s = strtok (cons, ":")) != NULL) {
+		strcpy (buf, cons);
+		while ((s = strtok (buf, ":")) != NULL) {
 			if (strcmp (s, tty) == 0) {
 				return true;
 			}




More information about the Pkg-shadow-commits mailing list