Skip to content

Commit 7269dfd

Browse files
committed
fix "size of variable length array should be an integer"
1 parent 3e26e1b commit 7269dfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toxcore/TCP_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ int read_packet_TCP_secure_connection(
278278
return -1;
279279
}
280280

281-
VLA(uint8_t, data_encrypted, *next_packet_length);
281+
VLA(uint8_t, data_encrypted, (int)(*next_packet_length));
282282
const int len_packet = read_TCP_packet(logger, ns, sock, data_encrypted, *next_packet_length, ip_port);
283283

284284
if (len_packet == -1) {

0 commit comments

Comments
 (0)