diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-05-17 05:57:08 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-05-17 05:57:08 +0000 |
commit | e46b0f0ccdff21c05183af4e1555d5bee228b184 (patch) | |
tree | a1cc446055a7454d9c0f15b51236f49687757e72 /src/mysql.c | |
parent | 572d1a94bd978395d24c628a8c7e4a4eb5cf7f1e (diff) |
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
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 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); |