diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-12-22 16:42:56 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-12-22 16:42:56 +0000 |
commit | 49a14a494e831d32f6a0cfb72c7cff5bbbd675e7 (patch) | |
tree | 3a369e88ebcfec4d6a8795980e7db7a97c13e4e7 | |
parent | 8d050598f736bdb24f4eccf1760bc04c26e39e31 (diff) | |
download | hercules-49a14a494e831d32f6a0cfb72c7cff5bbbd675e7.tar.gz hercules-49a14a494e831d32f6a0cfb72c7cff5bbbd675e7.tar.bz2 hercules-49a14a494e831d32f6a0cfb72c7cff5bbbd675e7.tar.xz hercules-49a14a494e831d32f6a0cfb72c7cff5bbbd675e7.zip |
Fixed incorrect usage of sv_escape_c() in TXT's login_log function, which produced malformed log entries (caused by r12489).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13408 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | src/login/loginlog_txt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/login/loginlog_txt.c b/src/login/loginlog_txt.c index 724156ddc..76ad08c54 100644 --- a/src/login/loginlog_txt.c +++ b/src/login/loginlog_txt.c @@ -44,8 +44,8 @@ void login_log(uint32 ip, const char* username, int rcode, const char* message) time_t raw_time; char str_time[24]; - sv_escape_c(esc_username, username, NAME_LENGTH, NULL); - sv_escape_c(esc_message, message, 255, NULL); + sv_escape_c(esc_username, username, safestrnlen(username,NAME_LENGTH), NULL); + sv_escape_c(esc_message, message, safestrnlen(message,255), NULL); time(&raw_time); strftime(str_time, 24, login_config.date_format, localtime(&raw_time)); |