diff options
-rw-r--r-- | Changelog-Trunk.txt | 1 | ||||
-rw-r--r-- | src/login_sql/login.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index dcdcfa21d..80ed3abc8 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. 2007/05/07 + * Added a check to login_sql against too long db-stored emails [ultramage] * Removed an unused variable in script.c [Toms] * Fixed Converters not overwriting each other [Playtester] - thanks to scerez for the fix diff --git a/src/login_sql/login.c b/src/login_sql/login.c index 4b3c4c4a2..5929e9748 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -809,7 +809,7 @@ int parse_fromchar(int fd) if (sql_res) { sql_row = mysql_fetch_row(sql_res); connect_until_time = atol(sql_row[1]); - strcpy(email, sql_row[0]); + strncpy(email, sql_row[0], 40); email[39] = 0; mysql_free_result(sql_res); } WFIFOW(fd,0) = 0x2713; |