]> granicus.if.org Git - shadow/commitdiff
* src/login.c: Change a snprintf() to strncpy(). There are no
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Tue, 28 Apr 2009 20:59:31 +0000 (20:59 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Tue, 28 Apr 2009 20:59:31 +0000 (20:59 +0000)
format.

ChangeLog
src/login.c

index 4880afc6bfdae4405a3d392c81d95805ed8753f2..6eb6dcab8de571187a2d9c3eb7f5969f1c7caadd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-28  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * src/login.c: Change a snprintf() to strncpy(). There are no
+       format.
+
 2009-04-28  Nicolas François  <nicolas.francois@centraliens.net>
 
        * src/passwd.c: Harmonize status report at the end of passwd.
index c27aadbb5576d425ad142651decf7fd01344aa64..2f8fc48161aec9293fe3fbb5d03815fb1c3e5f97 100644 (file)
@@ -746,8 +746,8 @@ int main (int argc, char **argv)
                                  sizeof (loginprompt),
                                  _("%s login: "), hostn);
                } else {
-                       snprintf (loginprompt,
-                                 sizeof (loginprompt), _("login: "));
+                       strncpy (loginprompt, _("login: "),
+                                sizeof (loginprompt));
                }
 
                retcode = pam_set_item (pamh, PAM_USER_PROMPT, loginprompt);