diff options
author | Haru <haru@dotalux.com> | 2017-08-11 02:23:57 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2017-08-11 02:23:57 +0200 |
commit | 37b1dcf5319e5de89edd41c083a27ef63ebce9da (patch) | |
tree | db522ed6fa975ae92b0314a419af69639064ed92 /src/map/clif.c | |
parent | 10c1e5e65348c5d257b23064c87dcfe83ff68973 (diff) | |
download | hercules-37b1dcf5319e5de89edd41c083a27ef63ebce9da.tar.gz hercules-37b1dcf5319e5de89edd41c083a27ef63ebce9da.tar.bz2 hercules-37b1dcf5319e5de89edd41c083a27ef63ebce9da.tar.xz hercules-37b1dcf5319e5de89edd41c083a27ef63ebce9da.zip |
Fix various issues detected by coverity in rodex-related code
Follow-up to 544da439e81ff78ec102b754e16b6cc0a28a6d0a
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index c13a3ea80..bd815e055 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -19249,7 +19249,7 @@ void clif_rodex_open_write_mail(int fd, const char *receiver_name, int8 result) WFIFOHEAD(fd, sizeof(*sPacket)); sPacket = WFIFOP(fd, 0); sPacket->PacketType = rodexopenwrite; - strncpy(sPacket->receiveName, receiver_name, NAME_LENGTH); + safestrncpy(sPacket->receiveName, receiver_name, NAME_LENGTH); sPacket->result = result; WFIFOSET(fd, sizeof(*sPacket)); #endif |