mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
fix: tcc needs integer as VLA size
This commit is contained in:
parent
26ce30d852
commit
d5de4dc878
|
@ -278,7 +278,7 @@ int read_packet_TCP_secure_connection(
|
||||||
return -1;
|
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);
|
const int len_packet = read_TCP_packet(logger, ns, sock, data_encrypted, *next_packet_length, ip_port);
|
||||||
|
|
||||||
if (len_packet == -1) {
|
if (len_packet == -1) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user