diff options
author | Maxim Biro <nurupo.contributions@gmail.com> | 2017-02-19 21:24:30 -0500 |
---|---|---|
committer | Maxim Biro <nurupo.contributions@gmail.com> | 2017-02-21 15:54:53 -0500 |
commit | b2d04eae9d9b76523b877a9e5efd5989f83b143d (patch) | |
tree | b82e3aa532cb145739005d6cf87f683d1f9ae5c2 /toxcore/onion_announce.c | |
parent | 1cc119c7a391f8ff5410a792ee6eb32b11d01151 (diff) |
Use VLA macro
Diffstat (limited to 'toxcore/onion_announce.c')
-rw-r--r-- | toxcore/onion_announce.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/onion_announce.c b/toxcore/onion_announce.c index 28d3b281..85868b91 100644 --- a/toxcore/onion_announce.c +++ b/toxcore/onion_announce.c | |||
@@ -279,7 +279,7 @@ static void sort_onion_announce_list(Onion_Announce_Entry *list, unsigned int le | |||
279 | { | 279 | { |
280 | // Pass comp_public_key to qsort with each Client_data entry, so the | 280 | // Pass comp_public_key to qsort with each Client_data entry, so the |
281 | // comparison function can use it as the base of comparison. | 281 | // comparison function can use it as the base of comparison. |
282 | Cmp_data cmp_list[length]; | 282 | VLA(Cmp_data, cmp_list, length); |
283 | 283 | ||
284 | for (uint32_t i = 0; i < length; i++) { | 284 | for (uint32_t i = 0; i < length; i++) { |
285 | cmp_list[i].base_public_key = comp_public_key; | 285 | cmp_list[i].base_public_key = comp_public_key; |