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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user