Skip to content

Commit

Permalink
Resolved a compile warning
Browse files Browse the repository at this point in the history
* Follow up to a89ab2f.
* Casted the message length to uint16 from size_t when writing to FIFO.
  • Loading branch information
aleos89 committed Jun 3, 2016
1 parent e39293f commit 46f1a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/clif.c
Expand Up @@ -10677,7 +10677,7 @@ void clif_parse_GlobalMessage(int fd, struct map_session_data* sd)
// send back message to the speaker
WFIFOHEAD(fd,4+length);
WFIFOW(fd,0) = 0x8e;
WFIFOW(fd,2) = 4+length;
WFIFOW(fd,2) = (uint16)(4+length);
safestrncpy((char*)WFIFOP(fd,4), output, length );
WFIFOSET(fd, WFIFOW(fd,2));

Expand Down

0 comments on commit 46f1a6f

Please sign in to comment.