1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 05:16:38 +02:00

core: fix gcc warning on snprintf

This commit is contained in:
Sébastien Helleu
2023-03-25 10:00:54 +01:00
parent 15f0f7e369
commit a2ddfdf5a6
+2 -1
View File
@@ -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);
}
}