chiark / gitweb /
manager: properly parse finish timestamp
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Oct 2010 12:41:07 +0000 (14:41 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 Oct 2010 12:41:07 +0000 (14:41 +0200)
src/manager.c

index 37f0d04..e90757e 100644 (file)
@@ -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;