Fix warning.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3459 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
Meep-Eep
2009-12-20 10:54:45 +00:00
parent 8f711e621e
commit 3f203f6b72
+2 -1
View File
@@ -312,7 +312,8 @@ PacketHandler_TeamName(NetConnection *conn, const Packet_TeamName *packet) {
- sizeof (Packet_TeamName) - 1; - sizeof (Packet_TeamName) - 1;
// The -1 is for not counting the terminating '\0'. // The -1 is for not counting the terminating '\0'.
updateTeamName(battleStateData->meleeState, side, packet->name, nameLen); updateTeamName(battleStateData->meleeState, side,
(const char *) packet->name, nameLen);
// Padding data may follow; it is ignored. // Padding data may follow; it is ignored.
return 0; return 0;