From a8d987d93c9250601901aa2dd713b51447db8aa8 Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Tue, 12 Jul 2016 19:03:01 -0700 Subject: [PATCH] systemd: Also force base-10 for the strtol() call This call is used to parse a time value expressed in usec's, which is always decimal. Signed-off-by: Bryce Harrington --- compositor/systemd-notify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compositor/systemd-notify.c b/compositor/systemd-notify.c index 44070597..9fbd5ee2 100644 --- a/compositor/systemd-notify.c +++ b/compositor/systemd-notify.c @@ -145,7 +145,7 @@ module_init(struct weston_compositor *compositor, return 0; errno = 0; - watchdog_time_conv = strtol(watchdog_time_env, &tail, 0); + watchdog_time_conv = strtol(watchdog_time_env, &tail, 10); if ((errno != 0) || (*tail != '\0')) return 0;