[Xfce4-commits] [xfce/xfwm4] 02/05: startup-notification: Crash/stack smash on some architectures
noreply at xfce.org
noreply at xfce.org
Sun Apr 14 21:04:12 CEST 2019
This is an automated email from the git hooks/post-receive script.
o l i v i e r p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfwm4.
commit f68c04ba8591615e5ee615865daf50c23b35ef33
Author: Martin Husemann <martin at NetBSD.org>
Date: Sun Apr 14 15:17:30 2019 +0200
startup-notification: Crash/stack smash on some architectures
Bug: 15028
sn_startup_sequence_get_last_active_time takes two long pointer
arguments, but xfwm4 passes pointers to may-be-different types.
Signed-off-by: Martin Husemann <martin at NetBSD.org>
---
src/startup_notification.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/startup_notification.c b/src/startup_notification.c
index 7ff6140..4fc9e6a 100644
--- a/src/startup_notification.c
+++ b/src/startup_notification.c
@@ -128,6 +128,7 @@ sn_collect_timed_out_foreach (void *element, void *data)
SnStartupSequence *sequence;
time_t tv_sec;
suseconds_t tv_usec;
+ long l_sec, l_usec;
double elapsed;
g_return_if_fail (data != NULL);
@@ -135,7 +136,8 @@ sn_collect_timed_out_foreach (void *element, void *data)
sequence = element;
ctod = (CollectTimedOutData *) data;
- sn_startup_sequence_get_last_active_time (sequence, &tv_sec, &tv_usec);
+ sn_startup_sequence_get_last_active_time (sequence, &l_sec, &l_usec);
+ tv_sec = l_sec; tv_usec = l_sec;
elapsed =
((((double) ctod->now.tv_sec - tv_sec) * G_USEC_PER_SEC +
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list