* src/login.c: Change a snprintf() to strncpy(). There are no
format.
This commit is contained in:
parent
1db4402dbb
commit
1e75786616
@ -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>
|
2009-04-28 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* src/passwd.c: Harmonize status report at the end of passwd.
|
* src/passwd.c: Harmonize status report at the end of passwd.
|
||||||
|
@ -746,8 +746,8 @@ int main (int argc, char **argv)
|
|||||||
sizeof (loginprompt),
|
sizeof (loginprompt),
|
||||||
_("%s login: "), hostn);
|
_("%s login: "), hostn);
|
||||||
} else {
|
} else {
|
||||||
snprintf (loginprompt,
|
strncpy (loginprompt, _("login: "),
|
||||||
sizeof (loginprompt), _("login: "));
|
sizeof (loginprompt));
|
||||||
}
|
}
|
||||||
|
|
||||||
retcode = pam_set_item (pamh, PAM_USER_PROMPT, loginprompt);
|
retcode = pam_set_item (pamh, PAM_USER_PROMPT, loginprompt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user