* libmisc/salt.c (SHA_salt_rounds): It is statically ensured that
the format fits in rounds_prefix. * libmisc/loginprompt.c: Likewise.
This commit is contained in:
parent
cd10be6c91
commit
f1db2383fc
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
* libmisc/salt.c (SHA_salt_rounds): It is statically ensured that
|
* libmisc/salt.c (SHA_salt_rounds): It is statically ensured that
|
||||||
the format fits in rounds_prefix.
|
the format fits in rounds_prefix.
|
||||||
|
* libmisc/loginprompt.c: Likewise.
|
||||||
|
|
||||||
2011-09-18 Nicolas François <nicolas.francois@centraliens.net>
|
2011-09-18 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* Copyright (c) 1989 - 1993, Julianne Frances Haugh
|
* Copyright (c) 1989 - 1993, Julianne Frances Haugh
|
||||||
* Copyright (c) 1996 - 2000, Marek Michałkiewicz
|
* Copyright (c) 1996 - 2000, Marek Michałkiewicz
|
||||||
* Copyright (c) 2003 - 2005, Tomasz Kłoczko
|
* Copyright (c) 2003 - 2005, Tomasz Kłoczko
|
||||||
* Copyright (c) 2008 - 2010, Nicolas François
|
* Copyright (c) 2008 - 2011, Nicolas François
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -158,10 +158,9 @@ void login_prompt (const char *prompt, char *name, int namesize)
|
|||||||
envp[envc] = nvar;
|
envp[envc] = nvar;
|
||||||
} else {
|
} else {
|
||||||
size_t len = strlen (nvar) + 32;
|
size_t len = strlen (nvar) + 32;
|
||||||
int wlen;
|
|
||||||
envp[envc] = xmalloc (len);
|
envp[envc] = xmalloc (len);
|
||||||
wlen = snprintf (envp[envc], len, "L%d=%s", count++, nvar);
|
(void) snprintf (envp[envc], len,
|
||||||
assert (wlen == (int) len -1);
|
"L%d=%s", count++, nvar);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
set_env (envc, envp);
|
set_env (envc, envp);
|
||||||
|
Loading…
Reference in New Issue
Block a user