Fixed null termination on party chat for 2015-10 onwards

Fixed #1003
Fixed #992
This commit is contained in:
Lemongrass3110 2016-03-03 23:12:09 +01:00
parent 61a48b9b0b
commit 98fedbdf09

View File

@ -12763,6 +12763,10 @@ void clif_parse_PartyMessage(int fd, struct map_session_data* sd){
char *name, *message;
int namelen, messagelen;
#if PACKETVER >= 20151001
textlen++;
#endif
// validate packet and retrieve name and message
if( !clif_process_message(sd, 0, &name, &namelen, &message, &messagelen) )
return;