summaryrefslogtreecommitdiff
path: root/src/mysql.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 16:03:16 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 16:03:16 +0000
commite5051e4aa5cfc9e80ac965a6a82e4cab8d17387c (patch)
tree0ccaead6e96584ebc2376604e5ca5c34c11b12b1 /src/mysql.c
parentb7ed70140d6e755b49cdd3c4b9d85ec6abf30cd7 (diff)
Merge commit 'cbx/anopeng-uid' into anopeng-uid
Conflicts: include/extern.h include/services.h src/protocol/bahamut.c src/protocol/inspircd11.c git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1320 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/mysql.c')
-rw-r--r--src/mysql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mysql.c b/src/mysql.c
index 22fa520da..ed0422781 100644
--- a/src/mysql.c
+++ b/src/mysql.c
@@ -1669,7 +1669,7 @@ int db_mysql_load_ns_req_dbase(void)
nr->nick = sstrdup(mysql_row[0]);
nr->passcode = sstrdup(mysql_row[1]);
- nr->password = sstrdup(mysql_row[2]);
+ snprintf(nr->password, PASSMAX, "%s", mysql_row[2]);
nr->email = sstrdup(mysql_row[3]);
nr->requested = strtol(mysql_row[4], (char **) NULL, 10);
@@ -1712,7 +1712,7 @@ int db_mysql_load_ns_dbase(void)
/* Display, password, email, ICQ, URL, flags */
nc->display = sstrdup(mysql_row[0]);
- nc->pass = sstrdup(mysql_row[1]);
+ snprintf(nc->pass, PASSMAX, "%s", mysql_row[1]);
nc->email = sstrdup(mysql_row[2]);
nc->icq = strtol(mysql_row[3], (char **) NULL, 10);
nc->url = sstrdup(mysql_row[4]);