From 2270be82ade6f2e63d652602a3842aa1fca3cb7c Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 13 Mar 2017 13:08:49 +0000 Subject: Adapt to skalibs-2.5.0.0 --- src/libs6rc/s6rc_sanitize_dir.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/libs6rc/s6rc_sanitize_dir.c') diff --git a/src/libs6rc/s6rc_sanitize_dir.c b/src/libs6rc/s6rc_sanitize_dir.c index fa7079d..9f647a9 100644 --- a/src/libs6rc/s6rc_sanitize_dir.c +++ b/src/libs6rc/s6rc_sanitize_dir.c @@ -1,7 +1,6 @@ /* ISC license. */ -#include -#include +#include #include #include #include @@ -9,7 +8,7 @@ int s6rc_sanitize_dir (stralloc *sa, char const *fn, size_t *dirlen) { size_t base = sa->len ; - size_t fnlen = str_len(fn) ; + size_t fnlen = strlen(fn) ; size_t ddirlen ; int wasnull = !sa->s ; if (!sadirname(sa, fn, fnlen)) return 0 ; -- cgit v1.2.3