summaryrefslogtreecommitdiff
path: root/toxcore/TCP_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/TCP_client.c')
-rw-r--r--toxcore/TCP_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/TCP_client.c b/toxcore/TCP_client.c
index 2a2289b2..dbcae11b 100644
--- a/toxcore/TCP_client.c
+++ b/toxcore/TCP_client.c
@@ -165,7 +165,7 @@ static int write_packet_TCP_secure_connection(TCP_Client_Connection *con, const
165 if ((unsigned int)len == sizeof(packet)) 165 if ((unsigned int)len == sizeof(packet))
166 return 1; 166 return 1;
167 167
168 memcpy(con->last_packet, packet, length); 168 memcpy(con->last_packet, packet, sizeof(packet));
169 con->last_packet_length = sizeof(packet); 169 con->last_packet_length = sizeof(packet);
170 con->last_packet_sent = len; 170 con->last_packet_sent = len;
171 return 1; 171 return 1;