[Pkg-shadow-commits] r2747 - in upstream/trunk: . src

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Wed Apr 22 20:21:17 UTC 2009


Author: nekral-guest
Date: 2009-04-22 20:21:17 +0000 (Wed, 22 Apr 2009)
New Revision: 2747

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/src/login.c
Log:
	* src/login.c: Use xmalloc() instead of malloc().


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2009-04-22 20:17:11 UTC (rev 2746)
+++ upstream/trunk/ChangeLog	2009-04-22 20:21:17 UTC (rev 2747)
@@ -1,5 +1,9 @@
 2009-04-22  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* src/login.c: Use xmalloc() instead of malloc().
+
+2009-04-22  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* src/login.c: Ignore the return value of puts(), fputs(),
 	strftime().
 

Modified: upstream/trunk/src/login.c
===================================================================
--- upstream/trunk/src/login.c	2009-04-22 20:17:11 UTC (rev 2746)
+++ upstream/trunk/src/login.c	2009-04-22 20:21:17 UTC (rev 2747)
@@ -610,7 +610,7 @@
 	}
 #ifdef RLOGIN
 	if (rflg) {
-		username = malloc (32 * sizeof (char));
+		username = xmalloc (32 * sizeof (char));
 		if (do_rlogin (hostname, username, 32, term, sizeof term)) {
 			preauth_flag = true;
 		} else {
@@ -920,7 +920,7 @@
 				exit (1);
 			}
 			preauth_flag = false;
-			username = malloc (32);
+			username = xmalloc (32);
 			login_prompt (_("\n%s login: "), username, 32);
 
 			if ('\0' == username) {




More information about the Pkg-shadow-commits mailing list