From bd57bc1edb6d8131a920bcc4f12d91457e2ca2ed Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 4 Sep 2018 21:02:42 +0200 Subject: Fix GCC8 warnings --- test/test.lv2/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test.lv2/test.c') diff --git a/test/test.lv2/test.c b/test/test.lv2/test.c index 30677f1..d16e4a9 100644 --- a/test/test.lv2/test.c +++ b/test/test.lv2/test.c @@ -101,7 +101,7 @@ instantiate(const LV2_Descriptor* descriptor, return NULL; } - strncpy(test->tmp_file_path, TMP_TEMPLATE, sizeof(TMP_TEMPLATE)); + strncpy(test->tmp_file_path, TMP_TEMPLATE, strlen(TMP_TEMPLATE) + 1); mkstemp(test->tmp_file_path); LV2_State_Make_Path* make_path = NULL; -- cgit v1.2.1