summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/lilv_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lilv_test.c b/test/lilv_test.c
index 6b81cb1..117c428 100644
--- a/test/lilv_test.c
+++ b/test/lilv_test.c
@@ -79,7 +79,7 @@ delete_bundle(void)
static void
init_tests(void)
{
- snprintf(bundle_dir_name, strlen(bundle_dir_name), "%s/.lv2/lilv-test.lv2",
+ snprintf(bundle_dir_name, sizeof(bundle_dir_name), "%s/.lv2/lilv-test.lv2",
getenv("HOME"));
lilv_mkdir_p(bundle_dir_name);