diff options
author | glighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-11-30 04:13:46 +0000 |
---|---|---|
committer | glighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-11-30 04:13:46 +0000 |
commit | de3e9a7aea38e374a91d9f036da043f14e58b9f3 (patch) | |
tree | 0db9e5ba7201a1fc332b8abe87d75d6c3069c7ee /src/map/clif.c | |
parent | a97c2837c050d53bed4010f3399dcd5d0ad8b269 (diff) | |
download | hercules-de3e9a7aea38e374a91d9f036da043f14e58b9f3.tar.gz hercules-de3e9a7aea38e374a91d9f036da043f14e58b9f3.tar.bz2 hercules-de3e9a7aea38e374a91d9f036da043f14e58b9f3.tar.xz hercules-de3e9a7aea38e374a91d9f036da043f14e58b9f3.zip |
-Fix old warnings. 1st step to get ride of -wno flag in configure.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16987 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index b3dc2318b..362930b84 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -5345,7 +5345,7 @@ void clif_displaymessage(const int fd, const char *mes) WFIFOHEAD(fd, 5 + len); WFIFOW(fd,0) = 0x8e; WFIFOW(fd,2) = 5 + len; // 4 + len + NULL teminate - safestrncpy(WFIFOP(fd,4), line, len + 1); + safestrncpy((char *)WFIFOP(fd,4), line, len + 1); WFIFOSET(fd, 5 + len); } line = strtok(NULL, "\n"); @@ -6438,7 +6438,7 @@ void clif_party_message(struct party_data *p, int account_id, const char *mes, i WBUFW(buf,0)=0x109; WBUFW(buf,2)=len+8; WBUFL(buf,4)=account_id; - safestrncpy(WBUFP(buf,8), mes, len); + safestrncpy((char *)WBUFP(buf,8), mes, len); clif_send(buf,len+8,&sd->bl,PARTY); } } @@ -13806,7 +13806,7 @@ void clif_parse_Mail_send(int fd, struct map_session_data *sd) safestrncpy(msg.send_name, sd->status.name, NAME_LENGTH); safestrncpy(msg.dest_name, (char *)RFIFOP(fd,4), NAME_LENGTH); safestrncpy(msg.title, (char *)RFIFOP(fd,28), MAIL_TITLE_LENGTH); - + if (msg.title[0] == '\0') { return; // Message has no length and somehow client verification was skipped. } |