summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-01-31 16:11:07 -0200
committershennetsind <ind@henn.et>2013-01-31 16:11:07 -0200
commit638e2b5c985c13a8138d1cb166d5fdb8148b690c (patch)
tree61b8cc443ac8171cd203a89744c31d5d51664b2a /src/map/clif.c
parentfc2e159d8c3d45ddeae4ce1dcc84312303442745 (diff)
downloadhercules-638e2b5c985c13a8138d1cb166d5fdb8148b690c.tar.gz
hercules-638e2b5c985c13a8138d1cb166d5fdb8148b690c.tar.bz2
hercules-638e2b5c985c13a8138d1cb166d5fdb8148b690c.tar.xz
hercules-638e2b5c985c13a8138d1cb166d5fdb8148b690c.zip
Fixed Bug #3080
Replaced strncpy with safestrncpy where I found would be beneficial. http://hercules.ws/board/tracker/issue-3080-safestrncpy-instead-of-strncpy-where-applicable/ Also modifying headers accordingly. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 3f4ea8bc2..0e555252b 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -203,7 +203,7 @@ int clif_setip(const char* ip)
return 0;
}
- strncpy(map_ip_str, ip, sizeof(map_ip_str));
+ safestrncpy(map_ip_str, ip, sizeof(map_ip_str));
ShowInfo("Map Server IP Address : '"CL_WHITE"%s"CL_RESET"' -> '"CL_WHITE"%s"CL_RESET"'.\n", ip, ip2str(map_ip, ip_str));
return 1;
}