summaryrefslogtreecommitdiff
path: root/toxcore/TCP_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/TCP_server.c')
-rw-r--r--toxcore/TCP_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/TCP_server.c b/toxcore/TCP_server.c
index 6c0133dd..e7ef0d3a 100644
--- a/toxcore/TCP_server.c
+++ b/toxcore/TCP_server.c
@@ -345,7 +345,7 @@ static int write_packet_TCP_secure_connection(TCP_Secure_Connection *con, const
345 if ((unsigned int)len == sizeof(packet)) 345 if ((unsigned int)len == sizeof(packet))
346 return 1; 346 return 1;
347 347
348 memcpy(con->last_packet, packet, length); 348 memcpy(con->last_packet, packet, sizeof(packet));
349 con->last_packet_length = sizeof(packet); 349 con->last_packet_length = sizeof(packet);
350 con->last_packet_sent = len; 350 con->last_packet_sent = len;
351 return 1; 351 return 1;