diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-19 13:36:45 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-19 13:36:45 +0100 |
commit | 8b59b2c13ededb2c82e36193b6d6e969df36531c (patch) | |
tree | 7b5065279d3c5a6c8bd0ca90584d49bb73aac01c /init | |
parent | 6ef77291122d231754e7292630681dc67c109d60 (diff) | |
download | busybox-w32-8b59b2c13ededb2c82e36193b6d6e969df36531c.tar.gz busybox-w32-8b59b2c13ededb2c82e36193b6d6e969df36531c.tar.bz2 busybox-w32-8b59b2c13ededb2c82e36193b6d6e969df36531c.zip |
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>
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/init.c b/init/init.c index 2dcdfd471..c63bba1ff 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -1128,7 +1128,7 @@ int init_main(int argc UNUSED_PARAM, char **argv) | |||
1128 | strncpy(argv[0], "init", strlen(argv[0])); | 1128 | strncpy(argv[0], "init", strlen(argv[0])); |
1129 | /* Wipe argv[1]-argv[N] so they don't clutter the ps listing */ | 1129 | /* Wipe argv[1]-argv[N] so they don't clutter the ps listing */ |
1130 | while (*++argv) | 1130 | while (*++argv) |
1131 | memset(*argv, 0, strlen(*argv)); | 1131 | nuke_str(*argv); |
1132 | 1132 | ||
1133 | /* Set up signal handlers */ | 1133 | /* Set up signal handlers */ |
1134 | if (!DEBUG_INIT) { | 1134 | if (!DEBUG_INIT) { |