diff options
Diffstat (limited to 'auto_tests/tox_one_test.c')
-rw-r--r-- | auto_tests/tox_one_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/auto_tests/tox_one_test.c b/auto_tests/tox_one_test.c index 8726d5c5..ce698486 100644 --- a/auto_tests/tox_one_test.c +++ b/auto_tests/tox_one_test.c | |||
@@ -9,6 +9,7 @@ | |||
9 | #include <stdlib.h> | 9 | #include <stdlib.h> |
10 | #include <time.h> | 10 | #include <time.h> |
11 | 11 | ||
12 | #include "../toxcore/ccompat.h" | ||
12 | #include "../toxcore/tox.h" | 13 | #include "../toxcore/tox.h" |
13 | #include "../toxcore/util.h" | 14 | #include "../toxcore/util.h" |
14 | 15 | ||
@@ -77,7 +78,7 @@ START_TEST(test_one) | |||
77 | 78 | ||
78 | tox_self_get_address(tox1, address); | 79 | tox_self_get_address(tox1, address); |
79 | size_t save_size = tox_get_savedata_size(tox1); | 80 | size_t save_size = tox_get_savedata_size(tox1); |
80 | uint8_t data[save_size]; | 81 | VLA(uint8_t, data, save_size); |
81 | tox_get_savedata(tox1, data); | 82 | tox_get_savedata(tox1, data); |
82 | 83 | ||
83 | tox_kill(tox2); | 84 | tox_kill(tox2); |