summaryrefslogtreecommitdiff
path: root/libbb/bb_askpass.c
diff options
context:
space:
mode:
authorDenis Vlasenko2006-11-30 16:41:15 +0000
committerDenis Vlasenko2006-11-30 16:41:15 +0000
commitab24e18c7a32ee1637be19f239e9dd9d7c7f6534 (patch)
tree2646cfd66b5a8d279ad360aaa989a814eeecfd64 /libbb/bb_askpass.c
parentb8bb27c7ea37c9885b1ded36d0f7807a09ede712 (diff)
downloadbusybox-ab24e18c7a32ee1637be19f239e9dd9d7c7f6534.zip
busybox-ab24e18c7a32ee1637be19f239e9dd9d7c7f6534.tar.gz
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
Diffstat (limited to 'libbb/bb_askpass.c')
-rw-r--r--libbb/bb_askpass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/bb_askpass.c b/libbb/bb_askpass.c
index cf384e5..097a0a2 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++]);
}