Resolved a compile warning

* Follow up to 716f6c0.
* Fixes #2738.
Thanks to @sader1992!
This commit is contained in:
aleos 2017-12-28 16:28:58 -05:00
parent 9c531b0af6
commit e385e167ab

View File

@ -6210,7 +6210,7 @@ void clif_GlobalMessage(struct block_list* bl, const char* message, enum send_ta
std::unique_ptr<char> buf(new char[8+len]);
WBUFW(buf.get(),0)=0x8d;
WBUFW(buf.get(),2)=static_cast<int>(len+8);
WBUFW(buf.get(),2)=static_cast<uint16>(len+8);
WBUFL(buf.get(),4)=bl->id;
safestrncpy(WBUFCP(buf.get(),8),message,len);