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:
aleos89 2016-06-03 12:59:30 -04:00
parent e39293f129
commit 46f1a6f695

View File

@ -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));