summaryrefslogtreecommitdiff
path: root/src/map/chrif.c
diff options
context:
space:
mode:
authorMysterious <mysteriousragnarok@hotmail.com>2013-02-03 17:59:43 -0800
committerMysterious <mysteriousragnarok@hotmail.com>2013-02-03 17:59:43 -0800
commit9909d3bf4f4ad0acad48fbe5f1cfe69e44109da9 (patch)
treea9b1a6855824986b8bfa47a98236d30a1f2e1d33 /src/map/chrif.c
parentac7c180e10c5c84eae1ef8769942853ac8abc6f9 (diff)
parentfe8d3fc42729f2afc37426e26080b2d04f65d9f3 (diff)
downloadhercules-9909d3bf4f4ad0acad48fbe5f1cfe69e44109da9.tar.gz
hercules-9909d3bf4f4ad0acad48fbe5f1cfe69e44109da9.tar.bz2
hercules-9909d3bf4f4ad0acad48fbe5f1cfe69e44109da9.tar.xz
hercules-9909d3bf4f4ad0acad48fbe5f1cfe69e44109da9.zip
Merge pull request #1 from HerculesWS/master
Merging
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r--src/map/chrif.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index e109f7095..3ad164b89 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -1,5 +1,6 @@
-// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
-// For more information, see LICENCE in the main folder
+// Copyright (c) Hercules dev team, licensed under GNU GPL.
+// See the LICENSE file
+// Portions Copyright (c) Athena dev team
#include "../common/cbasetypes.h"
#include "../common/malloc.h"
@@ -246,7 +247,7 @@ int chrif_setip(const char* ip) {
return 0;
}
- strncpy(char_ip_str, ip, sizeof(char_ip_str));
+ safestrncpy(char_ip_str, ip, sizeof(char_ip_str));
ShowInfo("Char Server IP Address : '"CL_WHITE"%s"CL_RESET"' -> '"CL_WHITE"%s"CL_RESET"'.\n", ip, ip2str(char_ip, ip_str));