mirror of
https://github.com/anope/anope.git
synced 2026-06-30 07:16:38 +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:
@@ -39,6 +39,7 @@ Provided by mooncup <mooncup@anonnet.org> - 2009
|
||||
Provided by DukePyrolator <> - 2009
|
||||
03/15 F Log error when NSMemoReceipt isn't defined in config. [ #00]
|
||||
03/22 F Fixed memleak in channels.c. [ #00]
|
||||
05/17 F Change sizeof() to strlen() in db_mysql_secure(). [ #00]
|
||||
|
||||
Provided by Szymek <> - 2009
|
||||
03/30 F Fix HS OFF to work in all cases on InspIRCd. [#1075]
|
||||
|
||||
+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);
|
||||
|
||||
+2
-1
@@ -9,10 +9,11 @@ VERSION_MAJOR="1"
|
||||
VERSION_MINOR="8"
|
||||
VERSION_PATCH="0"
|
||||
VERSION_EXTRA="-svn"
|
||||
VERSION_BUILD="2299"
|
||||
VERSION_BUILD="2301"
|
||||
|
||||
# $Log$ # Changes since 1.8.0 Release
|
||||
|
||||
#Revision 2301 - Change sizeof() to strlen() in db_mysql_secure(), patch by DukePyrolator.
|
||||
#Revision 2299 - Fix bug #1078, MySQL query should no longer fail when password and salt are too long, patch from Adam.
|
||||
#Revision 2297 - Patch to allow jupe on all bar uplink and self. Thanks Adam. (Bug #1076)
|
||||
#Revision 2294 - Fix link to Link Block Generator on our site. Good find whoever it was :)
|
||||
|
||||
Reference in New Issue
Block a user