diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-04-10 19:07:00 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-04-10 19:07:00 +0000 |
commit | ca96d6732c71834c6424dfeb4b6696c381f6c662 (patch) | |
tree | 41f5bd448a296c46905d0049ea9415c91c670973 /src/char_sql/inter.c | |
parent | 35f3b96c8d060651befb7241f5de158a16283a8d (diff) | |
download | hercules-ca96d6732c71834c6424dfeb4b6696c381f6c662.tar.gz hercules-ca96d6732c71834c6424dfeb4b6696c381f6c662.tar.bz2 hercules-ca96d6732c71834c6424dfeb4b6696c381f6c662.tar.xz hercules-ca96d6732c71834c6424dfeb4b6696c381f6c662.zip |
Modified the charservers to use a DBMap instead of a cyclic array for auth data.
Merged the auth fix from r12473 to TXT as well.
Removed the no-op from r12547.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12551 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/inter.c')
-rw-r--r-- | src/char_sql/inter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char_sql/inter.c b/src/char_sql/inter.c index 4f856211d..00c29568b 100644 --- a/src/char_sql/inter.c +++ b/src/char_sql/inter.c @@ -643,8 +643,8 @@ int mapif_parse_WisRequest(int fd) ShowError("inter: Wis message doesn't exist.\n"); return 0; } - memcpy(name, RFIFOP(fd,28), NAME_LENGTH); //Received name may be too large and not contain \0! [Skotlex] - name[NAME_LENGTH-1]= '\0'; + + safestrncpy(name, (char*)RFIFOP(fd,28), NAME_LENGTH); //Received name may be too large and not contain \0! [Skotlex] Sql_EscapeStringLen(sql_handle, esc_name, name, strnlen(name, NAME_LENGTH)); if( SQL_ERROR == Sql_Query(sql_handle, "SELECT `name` FROM `%s` WHERE `name`='%s'", char_db, esc_name) ) |