From a2ddfdf5a6b967408b40b2a660dda49fd9fd29b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 25 Mar 2023 10:00:54 +0100 Subject: core: fix gcc warning on snprintf --- src/gui/gui-bar-item.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/gui/gui-bar-item.c b/src/gui/gui-bar-item.c index 8a7cf25ad..de902476f 100644 --- a/src/gui/gui-bar-item.c +++ b/src/gui/gui-bar-item.c @@ -969,7 +969,8 @@ gui_bar_item_input_text_cb (const void *pointer, void *data, ptr_input = malloc (length); if (ptr_input) { - snprintf (ptr_input, length, "%s%s", str_start_input, str_cursor); + strcpy (ptr_input, str_start_input); + strcat (ptr_input, str_cursor); } } -- cgit v1.2.3