mirror of
https://github.com/weechat/weechat.git
synced 2026-07-09 19:23:13 +02:00
core: fix sizeof of variable (struct content instead of its pointer) in function gui_hotlist_add
This commit is contained in:
@@ -345,8 +345,10 @@ gui_hotlist_add (struct t_gui_buffer *buffer,
|
||||
|
||||
new_hotlist->priority = priority;
|
||||
if (creation_time)
|
||||
{
|
||||
memcpy (&(new_hotlist->creation_time),
|
||||
creation_time, sizeof (creation_time));
|
||||
creation_time, sizeof (*creation_time));
|
||||
}
|
||||
else
|
||||
gettimeofday (&(new_hotlist->creation_time), NULL);
|
||||
new_hotlist->buffer = buffer;
|
||||
|
||||
Reference in New Issue
Block a user