GNOME Bugzilla – Bug 790072
Fails to build with libical 3.0.0
Last modified: 2017-11-24 17:14:09 UTC
Created attachment 363229 [details] [review] proposed patch Fails to build with libical 3.0.0. The attached is a patch which helps. I'd also consider to change the content of gcal_dup_icaltime() to either use memcpy() or *new_date = *date, to avoid an issue with other structure changes. This removal was easy to spot, but imagine they will add some. They you fail to copy the value being it this way, making the structure content possibly invalid in some way.
Created attachment 363766 [details] [review] Patch to use g_memdup Wrote this patch and then found out that this bug (and one patch already exists). Uploaded since it does the change suggested by Milan Chra, and avoids listing all the struct members since we don't need to.
Thanks for the patches! Pushed to master, will cherry-pick to gnome-3-26 and gnome-3-24