summaryrefslogtreecommitdiff
path: root/mysql.c
diff options
context:
space:
mode:
Diffstat (limited to 'mysql.c')
-rw-r--r--mysql.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysql.c b/mysql.c
index ccd75b69d..4479596bc 100644
--- a/mysql.c
+++ b/mysql.c
@@ -218,6 +218,9 @@ char *db_mysql_secure(char *pass)
char epass[BUFSIZE];
+ /* Initialize the buffer. Bug #86 */
+ memset(epass, '\0', BUFSIZE);
+
#ifdef USE_ENCRYPTION
/* If we use the builtin encryption don't double encrypt! */
snprintf(epass, sizeof(epass), "'%s'", pass);