From e46b0f0ccdff21c05183af4e1555d5bee228b184 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Sun, 17 May 2009 05:57:08 +0000 Subject: Change sizeof() to strlen() in db_mysql_secure(), patch by DukePyrolator. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2301 5417fbe8-f217-4b02-8779-1006273d7864 --- src/mysql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mysql.c') 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); -- cgit