diff options
-rw-r--r-- | Changelog-Trunk.txt | 2 | ||||
-rw-r--r-- | src/char/inter.c | 13 | ||||
-rw-r--r-- | src/char_sql/inter.c | 13 |
3 files changed, 18 insertions, 10 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index d4e36ca40..0cef9ebd2 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -3,6 +3,8 @@ 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/01/27 + * Fixed a C language restriction preventing compilation [ultramage] 2007/01/26 * Removed all those useless read-from-GRF features noone would ever use, also removed cutincard script command as a consequence [DracoRPG] diff --git a/src/char/inter.c b/src/char/inter.c index f1e1cd592..e5e397709 100644 --- a/src/char/inter.c +++ b/src/char/inter.c @@ -641,13 +641,16 @@ static void mapif_namechange_ack(int fd, int account_id, int char_id, int type, int mapif_parse_NameChangeRequest(int fd) { - RFIFOHEAD(fd); - int account_id = RFIFOL(fd, 2); - int char_id = RFIFOL(fd, 6); - int type = RFIFOB(fd, 10); - char *name =RFIFOP(fd, 11); + int account_id, char_id, type; + char* name; int i; + RFIFOHEAD(fd); + account_id = RFIFOL(fd, 2); + char_id = RFIFOL(fd, 6); + type = RFIFOB(fd, 10); + name = RFIFOP(fd, 11); + // Check Authorised letters/symbols in the name if (char_name_option == 1) { // only letters/symbols in char_name_letters are authorised for (i = 0; i < NAME_LENGTH && name[i]; i++) diff --git a/src/char_sql/inter.c b/src/char_sql/inter.c index b4bc3ddc0..03ab85773 100644 --- a/src/char_sql/inter.c +++ b/src/char_sql/inter.c @@ -773,13 +773,16 @@ static void mapif_namechange_ack(int fd, int account_id, int char_id, int type, int mapif_parse_NameChangeRequest(int fd) { - RFIFOHEAD(fd); - int account_id = RFIFOL(fd, 2); - int char_id = RFIFOL(fd, 6); - int type = RFIFOB(fd, 10); - char *name =RFIFOP(fd, 11); + int account_id, char_id, type; + char* name; int i; + RFIFOHEAD(fd); + account_id = RFIFOL(fd, 2); + char_id = RFIFOL(fd, 6); + type = RFIFOB(fd, 10); + name = RFIFOP(fd, 11); + // Check Authorised letters/symbols in the name if (char_name_option == 1) { // only letters/symbols in char_name_letters are authorised for (i = 0; i < NAME_LENGTH && name[i]; i++) |