diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-03-25 10:00:54 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-03-25 10:00:54 +0100 |
commit | a2ddfdf5a6b967408b40b2a660dda49fd9fd29b3 (patch) | |
tree | dd626452519239512226e684313d3550b3af780c /src | |
parent | 15f0f7e3697955bbb23d1f14781909fff8e25659 (diff) | |
download | weechat-a2ddfdf5a6b967408b40b2a660dda49fd9fd29b3.zip |
core: fix gcc warning on snprintf
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/gui-bar-item.c | 3 |
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); } } |