diff options
Diffstat (limited to 'src/libs6rc')
-rw-r--r-- | src/libs6rc/s6rc_livedir_create.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs6rc/s6rc_livedir_create.c b/src/libs6rc/s6rc_livedir_create.c index 1da0ac3..868eca9 100644 --- a/src/libs6rc/s6rc_livedir_create.c +++ b/src/libs6rc/s6rc_livedir_create.c @@ -19,7 +19,7 @@ int s6rc_livedir_create (stralloc *sa, char const *live, char const *suffix, cha if (!stralloc_cats(sa, suffix)) goto err ; if (!stralloc_cats(sa, ":XXXXXX")) goto err ; if (!mkdtemp(sa->s + sabase)) goto err ; - newlen = sa->len-- ; + newlen = sa->len ; if (chmod(sa->s + sabase, 0755) < 0) goto delerr ; if (!stralloc_catb(sa, "/servicedirs", 13)) goto delerr ; /* allocates enough for the next strcpys */ if (mkdir(sa->s + sabase, 0755) < 0) goto delerr ; |