1
0
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:
Sebastien Helleu
2011-12-04 09:08:03 +01:00
parent aa79dedbb1
commit 23c70b013b
+3 -1
View File
@@ -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;