From 3fdff40e603e428f86e60f2acb949a1d7ea115c1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 29 Dec 2017 10:20:47 -0500 Subject: Use safe string functions --- test/test.lv2/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test.lv2') diff --git a/test/test.lv2/test.c b/test/test.lv2/test.c index 3fbef66..2850f0e 100644 --- a/test/test.lv2/test.c +++ b/test/test.lv2/test.c @@ -96,7 +96,7 @@ instantiate(const LV2_Descriptor* descriptor, return NULL; } - strcpy(test->tmp_file_path, TMP_TEMPLATE); + strncpy(test->tmp_file_path, TMP_TEMPLATE, sizeof(TMP_TEMPLATE)); mkstemp(test->tmp_file_path); LV2_State_Make_Path* make_path = NULL; -- cgit v1.2.1