This commit is contained in:
eihrul 2004-12-09 18:27:53 +00:00
parent 51a104a5f5
commit 5055669683

View file

@ -63,7 +63,7 @@ enet_packet_resize (ENetPacket * packet, size_t dataLength)
newData = (enet_uint8 *) enet_malloc (dataLength); newData = (enet_uint8 *) enet_malloc (dataLength);
memcpy (newData, packet -> data, packet -> dataLength); memcpy (newData, packet -> data, packet -> dataLength);
free (packet -> data); enet_free (packet -> data);
packet -> data = newData; packet -> data = newData;
packet -> dataLength = dataLength; packet -> dataLength = dataLength;