From: Bryce Harrington Date: Wed, 13 Jul 2016 02:03:01 +0000 (-0700) Subject: systemd: Also force base-10 for the strtol() call X-Git-Tag: upstream/5.0.0~985 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8d987d93c9250601901aa2dd713b51447db8aa8;p=platform%2Fupstream%2Fweston.git 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 --- diff --git a/compositor/systemd-notify.c b/compositor/systemd-notify.c index 4407059..9fbd5ee 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;