diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-07-13 22:35:39 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-07-13 22:35:39 +0200 |
commit | e0cecefb0f2bc8248fe9618b777b848efad609f1 (patch) | |
tree | 92d5ec70fcf2205b0e6840b7005b2117409e2f99 /tests/scripts | |
parent | 2682fb450dbb6603ffa30ab8bd9acecde99ddba7 (diff) | |
download | weechat-e0cecefb0f2bc8248fe9618b777b848efad609f1.zip |
tests: fix compiler warnings on calls to snprintf
Diffstat (limited to 'tests/scripts')
-rw-r--r-- | tests/scripts/test-scripts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |