From f9f8f092b587737728c85987f0c2c2689910b32b Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sat, 22 Feb 2025 14:58:19 +0000 Subject: [PATCH] Fix compilation error in gcc --- tests/cpath/test_cpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cpath/test_cpath.c b/tests/cpath/test_cpath.c index 4fd2928..e112c33 100644 --- a/tests/cpath/test_cpath.c +++ b/tests/cpath/test_cpath.c @@ -65,7 +65,7 @@ TestFuncResult test_cpath_join_path(void) { } memset(out, 0, strlen(out)); - snprintf(expected, 1, ""); + snprintf(expected, 1, "%s", ""); wapp_cpath_join_path(out, "", ""); result = result && strcmp(out, expected) == 0;