From ab24e18c7a32ee1637be19f239e9dd9d7c7f6534 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 30 Nov 2006 16:41:15 +0000 Subject: passwd: rework: * do not make backup copy by copying (just retain old file) * correctly fall back to /etc/passwd if user is not in shadow * fix bug with overlong passwd entries * be permissive on some kinds of failures * reduce stack usage * code size: -500 bytes --- libbb/bb_askpass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb/bb_askpass.c') diff --git a/libbb/bb_askpass.c b/libbb/bb_askpass.c index cf384e52b..097a0a290 100644 --- a/libbb/bb_askpass.c +++ b/libbb/bb_askpass.c @@ -60,7 +60,7 @@ char *bb_askpass(int timeout, const char * prompt) (read did not overwrite it) */ do { if (passwd[i] == '\r' || passwd[i] == '\n') - passwd[i] = 0; + passwd[i] = '\0'; } while (passwd[i++]); } -- cgit v1.2.3