fix: tcc needs integer as VLA size

This commit is contained in:
sudden6 2022-12-08 12:57:37 +01:00
parent 26ce30d852
commit d5de4dc878
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -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) {