diff --git a/toxcore/TCP_common.c b/toxcore/TCP_common.c index 5f3a1791..a42faced 100644 --- a/toxcore/TCP_common.c +++ b/toxcore/TCP_common.c @@ -278,7 +278,7 @@ int read_packet_TCP_secure_connection( return -1; } - VLA(uint8_t, data_encrypted, *next_packet_length); + VLA(uint8_t, data_encrypted, (int) *next_packet_length); const int len_packet = read_TCP_packet(logger, ns, sock, data_encrypted, *next_packet_length, ip_port); if (len_packet == -1) {