From: Lennart Poettering Date: Wed, 20 Oct 2010 12:41:07 +0000 (+0200) Subject: manager: properly parse finish timestamp X-Git-Tag: v12~194 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f5558b4990c683d69e10217f1bf73ecb66ca2d2;p=systemd manager: properly parse finish timestamp --- diff --git a/src/manager.c b/src/manager.c index 37f0d049..e90757ea 100644 --- a/src/manager.c +++ b/src/manager.c @@ -2562,8 +2562,8 @@ int manager_deserialize(Manager *m, FILE *f, FDSet *fds) { } else if (startswith(l, "finish-timestamp=")) { unsigned long long a, b; - if (sscanf(l+18, "%lli %llu", &a, &b) != 2) - log_debug("Failed to parse finish timestamp value %s", l+18); + if (sscanf(l+17, "%lli %llu", &a, &b) != 2) + log_debug("Failed to parse finish timestamp value %s", l+17); else { m->finish_timestamp.realtime = a; m->finish_timestamp.monotonic = b;