summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-01 20:57:47 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-01 20:57:47 +0000
commit1b968f83d51a3247e5ee528e77fb16942546141f (patch)
treeeb5a0b0e11ef7a406aaf6a426f4d56fc9956c731 /src/map/map.c
parent8deb4dfef1f3a6b81a93af20eccc7026b308dcc0 (diff)
downloadhercules-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/map/map.c')
-rw-r--r--src/map/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 5f4a1cf16..7fa7d4f7a 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -3205,7 +3205,7 @@ int inter_config_read(char *cfgName)
continue;
if(strcmpi(w1, "main_chat_nick")==0)
- strcpy(main_chat_nick, w2);
+ safestrncpy(main_chat_nick, w2, sizeof(main_chat_nick));
#ifndef TXT_ONLY
else