Browse Source

Fixed null termination on party chat for 2015-10 onwards

Fixed #1003
Fixed #992
Lemongrass3110 9 years ago
parent
commit
98fedbdf09
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/map/clif.c

+ 4 - 0
src/map/clif.c

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