From 49a14a494e831d32f6a0cfb72c7cff5bbbd675e7 Mon Sep 17 00:00:00 2001 From: ultramage Date: Mon, 22 Dec 2008 16:42:56 +0000 Subject: 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 --- src/login/loginlog_txt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/login/loginlog_txt.c') 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)); -- cgit v1.2.3-70-g09d2