* src/login.c: Use xmalloc() instead of malloc().

This commit is contained in:
nekral-guest 2009-04-22 20:21:17 +00:00
parent 349efcb0a6
commit eae8b63d4f
2 changed files with 6 additions and 2 deletions

View File

@ -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>
* src/login.c: Ignore the return value of puts(), fputs(),

View File

@ -610,7 +610,7 @@ int main (int argc, char **argv)
}
#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 @@ int main (int argc, char **argv)
exit (1);
}
preauth_flag = false;
username = malloc (32);
username = xmalloc (32);
login_prompt (_("\n%s login: "), username, 32);
if ('\0' == username) {