summaryrefslogtreecommitdiff
path: root/src/elogin
diff options
context:
space:
mode:
Diffstat (limited to 'src/elogin')
-rw-r--r--src/elogin/md5calc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elogin/md5calc.c b/src/elogin/md5calc.c
index 9bb9460..d5dbed3 100644
--- a/src/elogin/md5calc.c
+++ b/src/elogin/md5calc.c
@@ -343,7 +343,7 @@ int pass_ok(const char *password, const char *crypted)
if (!password || !crypted)
return 0;
- char buf[40], *salt=buf+1;
+ char buf[41], *salt = buf + 1;
strncpy(buf, crypted, 40);
buf[39] = 0;