forked from enlightenment/efl
edje_pick: fix a segfault on 'set' copy
Summary: wrong structure, a Edje_Image_Directory_Set_Entry, used for copy a set's data to new file. @fix Reviewers: raster, seoz, cedric, Hermet Reviewed By: Hermet Subscribers: Sachiel, cedric, seoz Differential Revision: https://phab.enlightenment.org/D1304
This commit is contained in:
parent
cb2f558ecf
commit
c8976fb21e
|
@ -777,7 +777,7 @@ _edje_pick_images_add(Edje_File *edf, Edje_File *o)
|
|||
/* Concatinate current file sets to re-allocaed array */
|
||||
memcpy(&o->image_dir->sets[k], edf->image_dir->sets,
|
||||
edf->image_dir->sets_count *
|
||||
sizeof(Edje_Image_Directory_Set_Entry));
|
||||
sizeof(Edje_Image_Directory_Set));
|
||||
|
||||
for (; k < o->image_dir->sets_count; k++)
|
||||
{ /* Fix IDs in sets to new assigned IDs of entries */
|
||||
|
|
Loading…
Reference in New Issue