From e0cecefb0f2bc8248fe9618b777b848efad609f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 13 Jul 2018 22:35:39 +0200 Subject: [PATCH] tests: fix compiler warnings on calls to snprintf --- tests/scripts/test-scripts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/scripts/test-scripts.cpp b/tests/scripts/test-scripts.cpp index 817d97320..2af1a0124 100644 --- a/tests/scripts/test-scripts.cpp +++ b/tests/scripts/test-scripts.cpp @@ -120,7 +120,7 @@ TEST_GROUP(Scripts) TEST(Scripts, API) { char path_testapigen[PATH_MAX], path_testapi[PATH_MAX]; - char *path_testapi_output_dir, str_command[4096]; + char *path_testapi_output_dir, str_command[(PATH_MAX * 2) + 128]; char *test_scripts_dir; struct timeval time_start, time_end; long long diff;