diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-12-01 20:57:47 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-12-01 20:57:47 +0000 |
commit | 1b968f83d51a3247e5ee528e77fb16942546141f (patch) | |
tree | eb5a0b0e11ef7a406aaf6a426f4d56fc9956c731 /src/char_sql | |
parent | 8deb4dfef1f3a6b81a93af20eccc7026b308dcc0 (diff) | |
download | hercules-1b968f83d51a3247e5ee528e77fb16942546141f.tar.gz hercules-1b968f83d51a3247e5ee528e77fb16942546141f.tar.bz2 hercules-1b968f83d51a3247e5ee528e77fb16942546141f.tar.xz hercules-1b968f83d51a3247e5ee528e77fb16942546141f.zip |
* 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
Diffstat (limited to 'src/char_sql')
-rw-r--r-- | src/char_sql/inter.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |