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:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user