* src/login.c: Use xmalloc() instead of malloc().
This commit is contained in:
parent
349efcb0a6
commit
eae8b63d4f
@ -1,3 +1,7 @@
|
|||||||
|
2009-04-22 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
* src/login.c: Use xmalloc() instead of malloc().
|
||||||
|
|
||||||
2009-04-22 Nicolas François <nicolas.francois@centraliens.net>
|
2009-04-22 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* src/login.c: Ignore the return value of puts(), fputs(),
|
* src/login.c: Ignore the return value of puts(), fputs(),
|
||||||
|
@ -610,7 +610,7 @@ int main (int argc, char **argv)
|
|||||||
}
|
}
|
||||||
#ifdef RLOGIN
|
#ifdef RLOGIN
|
||||||
if (rflg) {
|
if (rflg) {
|
||||||
username = malloc (32 * sizeof (char));
|
username = xmalloc (32 * sizeof (char));
|
||||||
if (do_rlogin (hostname, username, 32, term, sizeof term)) {
|
if (do_rlogin (hostname, username, 32, term, sizeof term)) {
|
||||||
preauth_flag = true;
|
preauth_flag = true;
|
||||||
} else {
|
} else {
|
||||||
@ -920,7 +920,7 @@ int main (int argc, char **argv)
|
|||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
preauth_flag = false;
|
preauth_flag = false;
|
||||||
username = malloc (32);
|
username = xmalloc (32);
|
||||||
login_prompt (_("\n%s login: "), username, 32);
|
login_prompt (_("\n%s login: "), username, 32);
|
||||||
|
|
||||||
if ('\0' == username) {
|
if ('\0' == username) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user