summaryrefslogtreecommitdiff
path: root/src/mysql.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mysql.c')
-rw-r--r--src/mysql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mysql.c b/src/mysql.c
index 8f032f1b9..01cf0f6fe 100644
--- a/src/mysql.c
+++ b/src/mysql.c
@@ -250,7 +250,7 @@ char *db_mysql_secure(char *pass, int size)
{
char tmp_pass[PASSMAX];
char *str, *tmp;
- unsigned bufsize = (2 * PASSMAX + 15 + sizeof(MysqlSecure));
+ unsigned bufsize = (2 * PASSMAX + 15 + strlen(MysqlSecure));
/* Initialize the buffer. Bug #86 */
memset(tmp_pass, 0, PASSMAX);