summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorglighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-12-05 14:24:00 +0000
committerglighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-12-05 14:24:00 +0000
commit4463d3c44108b98735aaccd21b821647da6e23cc (patch)
treedee39577a614c4faf761138b458d30f04cf26e2c /src/map/clif.c
parent819a81b5fd39095b417fa7b4873555e8f6304be1 (diff)
downloadhercules-4463d3c44108b98735aaccd21b821647da6e23cc.tar.gz
hercules-4463d3c44108b98735aaccd21b821647da6e23cc.tar.bz2
hercules-4463d3c44108b98735aaccd21b821647da6e23cc.tar.xz
hercules-4463d3c44108b98735aaccd21b821647da6e23cc.zip
- Re-committed r16987 (pid:161281).
-Re-commiting part is now ended git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17003 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 385aaff13..5ae67d77b 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -5406,7 +5406,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");
@@ -6502,7 +6502,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);
}
}