diff options
-rw-r--r-- | src/s6-rc/s6-rc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/s6-rc/s6-rc.c b/src/s6-rc/s6-rc.c index d99d6aa..dfd07af 100644 --- a/src/s6-rc/s6-rc.c +++ b/src/s6-rc/s6-rc.c @@ -566,12 +566,13 @@ int main (int argc, char const *const *argv) { ssize_t r = openreadnclose(dbfn, (char *)state, n) ; if (r == -1) strerr_diefu2sys(111, "read ", dbfn) ; - if (r < n) strerr_diefu2x(4, "read valid db in ", dbfn) ; + if (r < n) strerr_diefu2x(4, "read valid state in ", dbfn) ; { unsigned int i = n ; while (i--) state[i] &= 1 ; } } + dbfn[livelen] = 0 ; /* Read the db from the file */ |