Resolved a compile warning
* Follow up to a89ab2f. * Casted the message length to uint16 from size_t when writing to FIFO.
This commit is contained in:
parent
e39293f129
commit
46f1a6f695
@ -10677,7 +10677,7 @@ void clif_parse_GlobalMessage(int fd, struct map_session_data* sd)
|
|||||||
// send back message to the speaker
|
// send back message to the speaker
|
||||||
WFIFOHEAD(fd,4+length);
|
WFIFOHEAD(fd,4+length);
|
||||||
WFIFOW(fd,0) = 0x8e;
|
WFIFOW(fd,0) = 0x8e;
|
||||||
WFIFOW(fd,2) = 4+length;
|
WFIFOW(fd,2) = (uint16)(4+length);
|
||||||
safestrncpy((char*)WFIFOP(fd,4), output, length );
|
safestrncpy((char*)WFIFOP(fd,4), output, length );
|
||||||
WFIFOSET(fd, WFIFOW(fd,2));
|
WFIFOSET(fd, WFIFOW(fd,2));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user