tests/ivi-layout-test.c:255:48: error: format not a string literal and
no format arguments [-Werror=format-security]
snprintf(launcher->exe, sizeof launcher->exe, path);
^~~~
---
tests/ivi-layout-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/ivi-layout-test.c b/tests/ivi-layout-test.c
index b8074cf..337269f 100644
--- a/tests/ivi-layout-test.c
+++ b/tests/ivi-layout-test.c
@@ -252,7 +252,7 @@ controller_module_init(struct weston_compositor
*compositor,
launcher->compositor = compositor;
launcher->layout_interface = iface;
- snprintf(launcher->exe, sizeof launcher->exe, path);
+ snprintf(launcher->exe, sizeof launcher->exe, "%s", path);
if (wl_global_create(compositor->wl_display,
&weston_test_runner_interface, 1,
_______________________________________________
wayland-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-devel