libbb: move nuke_str() from passwd into libbb
function old new delta nuke_str - 15 +15 ask_and_check_password_extended 215 206 -9 init_main 781 771 -10 nuke_str 27 - -27 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 0/2 up/down: 15/-46) Total: -31 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
6ef7729112
commit
8b59b2c13e
4 changed files with 15 additions and 10 deletions
|
@ -1128,7 +1128,7 @@ int init_main(int argc UNUSED_PARAM, char **argv)
|
|||
strncpy(argv[0], "init", strlen(argv[0]));
|
||||
/* Wipe argv[1]-argv[N] so they don't clutter the ps listing */
|
||||
while (*++argv)
|
||||
memset(*argv, 0, strlen(*argv));
|
||||
nuke_str(*argv);
|
||||
|
||||
/* Set up signal handlers */
|
||||
if (!DEBUG_INIT) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue