Skip to content

d/patches: Add patch to fix 32bits demo app crash

Call to where-am-i on 32bits platform ends up with following error:

*** stack smashing detected ***: terminated

GTimeVal parameters are glong, which depends on the platform, but timestamp returned by geoclue is guint64 for both seconds and useconds. Furthermore GTimeVal is marked as deprecated.

As this app only displays time with an accuracy in seconds, we can replace g_date_time_new_from_timeval_local() by g_date_time_new_from_unix_local().

Signed-off-by: Frédéric Danis frederic.danis@collabora.com

https://phabricator.apertis.org/T7333

Edited by Andre Moreira Magalhaes

Merge request reports