summaryrefslogtreecommitdiff
path: root/src/login/loginlog_txt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/login/loginlog_txt.c')
-rw-r--r--src/login/loginlog_txt.c4
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));