diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-29 16:43:33 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-29 16:43:33 +0100 |
commit | 9b2a9f0210f13f1c59c0b954c4aa0eeb0a66efd1 (patch) | |
tree | a950fa73740d345e11ba1ce90f4fc39ee12516e6 /libbb | |
parent | 1a7256ac38284caffd2a0de2250364369059be69 (diff) | |
download | busybox-w32-9b2a9f0210f13f1c59c0b954c4aa0eeb0a66efd1.tar.gz busybox-w32-9b2a9f0210f13f1c59c0b954c4aa0eeb0a66efd1.tar.bz2 busybox-w32-9b2a9f0210f13f1c59c0b954c4aa0eeb0a66efd1.zip |
fix assorted unused code and wrong format specs found by cppchekc (bug 6716)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/pw_encrypt_md5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/pw_encrypt_md5.c b/libbb/pw_encrypt_md5.c index 889e09cab..1e52ecaea 100644 --- a/libbb/pw_encrypt_md5.c +++ b/libbb/pw_encrypt_md5.c | |||
@@ -86,7 +86,7 @@ md5_crypt(char result[MD5_OUT_BUFSIZE], const unsigned char *pw, const unsigned | |||
86 | 86 | ||
87 | /* Get the length of the salt including "$1$" */ | 87 | /* Get the length of the salt including "$1$" */ |
88 | sl = 3; | 88 | sl = 3; |
89 | while (salt[sl] && salt[sl] != '$' && sl < (3 + 8)) | 89 | while (sl < (3 + 8) && salt[sl] && salt[sl] != '$') |
90 | sl++; | 90 | sl++; |
91 | 91 | ||
92 | /* Hash. the password first, since that is what is most unknown */ | 92 | /* Hash. the password first, since that is what is most unknown */ |