summaryrefslogtreecommitdiff
path: root/src/map/send.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-24 22:49:15 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-24 22:49:15 +0300
commit82293aa84c93ba1cbe822387a5cde55b979ffcb6 (patch)
tree3aca32ed267aab13752f068ec7f157470725bed9 /src/map/send.c
parente29cfffbcd79f5cc8d2beea5434a4594f2353187 (diff)
downloadplugin-82293aa84c93ba1cbe822387a5cde55b979ffcb6.tar.gz
plugin-82293aa84c93ba1cbe822387a5cde55b979ffcb6.tar.bz2
plugin-82293aa84c93ba1cbe822387a5cde55b979ffcb6.tar.xz
plugin-82293aa84c93ba1cbe822387a5cde55b979ffcb6.zip
Fix compilation warnings.
Diffstat (limited to 'src/map/send.c')
-rw-r--r--src/map/send.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/send.c b/src/map/send.c
index 0e281b6..06e0cfc 100644
--- a/src/map/send.c
+++ b/src/map/send.c
@@ -180,7 +180,7 @@ void send_changenpc_title (struct map_session_data *sd, const int npcId, const c
WFIFOW (fd, 2) = sz;
WFIFOL (fd, 4) = npcId;
WFIFOW (fd, 8) = len;
- strcpy (WFIFOP (fd, 10), name);
+ strcpy ((char*)WFIFOP (fd, 10), name);
WFIFOSET (fd, sz);
}
@@ -188,7 +188,7 @@ void send_join_ack(int fd, const char *const name, int flag)
{
WFIFOHEAD (fd, 27);
WFIFOW (fd, 0) = 0xb08;
- safestrncpy (WFIFOP (fd, 2), name, 24);
+ safestrncpy ((char*)WFIFOP (fd, 2), name, 24);
WFIFOB (fd, 26) = flag;
WFIFOSET (fd, 27);
}