1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 22:43:13 +02:00

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
This commit is contained in:
cyberbotx
2009-05-17 05:57:08 +00:00
parent 572d1a94bd
commit e46b0f0ccd
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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);