diff options
-rw-r--r-- | Changelog-Trunk.txt | 3 | ||||
-rw-r--r-- | src/login_sql/login.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index c9be0df69..08bb8b6d2 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -3,6 +3,9 @@ Date Added AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. +2007/03/26 + * Corrected "format '%lu' expects type 'long unsigned int', but argument 4 + has type 'unsigned int'" warning on login.sql [Toms] 2007/03/24 * Corrected change r10051 which prevented Ice Pick from working [ultramage] - the 'ignore_' variables are bitflags and therefore need enough bits diff --git a/src/login_sql/login.c b/src/login_sql/login.c index 73a32950b..03ecb4982 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -1545,7 +1545,7 @@ int parse_login(int fd) default : error = "Unknown Error."; break; } - sprintf(tmpsql, "INSERT DELAYED INTO `%s`(`time`,`ip`,`user`,`rcode`,`log`) VALUES (NOW(), '%lu', '%s', '%d','login failed : %s')", loginlog_db, (unsigned int)ntohl(ipl), t_uid, result, error); + sprintf(tmpsql, "INSERT DELAYED INTO `%s`(`time`,`ip`,`user`,`rcode`,`log`) VALUES (NOW(), '%u', '%s', '%d','login failed : %s')", loginlog_db, (unsigned int)ntohl(ipl), t_uid, result, error); //query if(mysql_query(&mysql_handle, tmpsql)) { |