mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 14:29:05 -07:00
bug fix
This commit is contained in:
parent
51a104a5f5
commit
5055669683
1 changed files with 1 additions and 1 deletions
2
packet.c
2
packet.c
|
@ -63,7 +63,7 @@ enet_packet_resize (ENetPacket * packet, size_t dataLength)
|
|||
|
||||
newData = (enet_uint8 *) enet_malloc (dataLength);
|
||||
memcpy (newData, packet -> data, packet -> dataLength);
|
||||
free (packet -> data);
|
||||
enet_free (packet -> data);
|
||||
|
||||
packet -> data = newData;
|
||||
packet -> dataLength = dataLength;
|
||||
|
|
Loading…
Reference in a new issue