diff options
author | David Robillard <d@drobilla.net> | 2017-12-29 10:20:47 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-29 10:44:36 -0500 |
commit | 3fdff40e603e428f86e60f2acb949a1d7ea115c1 (patch) | |
tree | 009282f9bedc1da32a4ac74a4bb04ff9ac1b47eb /test/test.lv2/test.c | |
parent | 8a29a37768231ab9de4f479672127443a867e493 (diff) | |
download | lilv-3fdff40e603e428f86e60f2acb949a1d7ea115c1.tar.gz lilv-3fdff40e603e428f86e60f2acb949a1d7ea115c1.tar.bz2 lilv-3fdff40e603e428f86e60f2acb949a1d7ea115c1.zip |
Use safe string functions
Diffstat (limited to 'test/test.lv2/test.c')
-rw-r--r-- | test/test.lv2/test.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |