summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-03-25 10:00:54 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-03-25 10:00:54 +0100
commita2ddfdf5a6b967408b40b2a660dda49fd9fd29b3 (patch)
treedd626452519239512226e684313d3550b3af780c /src
parent15f0f7e3697955bbb23d1f14781909fff8e25659 (diff)
downloadweechat-a2ddfdf5a6b967408b40b2a660dda49fd9fd29b3.zip
core: fix gcc warning on snprintf
Diffstat (limited to 'src')
-rw-r--r--src/gui/gui-bar-item.c3
1 files changed, 2 insertions, 1 deletions
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);
}
}