diff options
Diffstat (limited to 'src/mysql.c')
-rw-r--r-- | src/mysql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mysql.c b/src/mysql.c index d50d1f3a6..22fa520da 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -238,7 +238,7 @@ char *db_mysql_secure(char *pass) memset(tmp_pass, '\0', PASSMAX); /* We couldnt decrypt the pass... */ - if (enc_decrypt(pass, tmp_pass, PASSMAX) != 1) { + if (enc_decrypt(pass, tmp_pass, PASSMAX - 1) != 1) { snprintf(epass, sizeof(epass), "'%s'", pass); } else { /* if we could decrypt the pass */ if (!pass) { |