From 1b968f83d51a3247e5ee528e77fb16942546141f Mon Sep 17 00:00:00 2001 From: ai4rei Date: Wed, 1 Dec 2010 20:57:47 +0000 Subject: * Fixed using main chat nick longer than 15 characters would cause a buffer overflow (bugreport:2671, since r5013). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14537 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/char_sql/inter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/char_sql') diff --git a/src/char_sql/inter.c b/src/char_sql/inter.c index 2f5c2daff..97c48bdf1 100644 --- a/src/char_sql/inter.c +++ b/src/char_sql/inter.c @@ -235,7 +235,7 @@ static int inter_config_read(const char* cfgName) else if(!strcmpi(w1,"log_inter")) log_inter = atoi(w2); else if(!strcmpi(w1,"main_chat_nick")) - strcpy(main_chat_nick, w2); + safestrncpy(main_chat_nick, w2, sizeof(main_chat_nick)); #endif //TXT_SQL_CONVERT else if(!strcmpi(w1,"import")) inter_config_read(w2); -- cgit v1.2.3-70-g09d2