summaryrefslogtreecommitdiffstats
path: root/test/test.lv2
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-04 21:02:42 +0200
committerDavid Robillard <d@drobilla.net>2018-09-04 21:02:42 +0200
commitbd57bc1edb6d8131a920bcc4f12d91457e2ca2ed (patch)
tree8cfdfb9c336aa991b21299e31c2106713add7f88 /test/test.lv2
parent4b298e4c7fa74836d023726185dfb2325d675c51 (diff)
downloadlilv-bd57bc1edb6d8131a920bcc4f12d91457e2ca2ed.tar.gz
lilv-bd57bc1edb6d8131a920bcc4f12d91457e2ca2ed.tar.bz2
lilv-bd57bc1edb6d8131a920bcc4f12d91457e2ca2ed.zip
Fix GCC8 warnings
Diffstat (limited to 'test/test.lv2')
-rw-r--r--test/test.lv2/test.c2
1 files changed, 1 insertions, 1 deletions
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;