summaryrefslogtreecommitdiff
path: root/src/libs6rc/s6rc_sanitize_dir.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-03-13 13:08:49 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-03-13 13:08:49 +0000
commit2270be82ade6f2e63d652602a3842aa1fca3cb7c (patch)
treed159fd148ffec62a2e8c6d79beb3e50e0514571a /src/libs6rc/s6rc_sanitize_dir.c
parent1e709ae40466a7742ba8cbdeff841c6edfaa5e5e (diff)
downloads6-rc-2270be82ade6f2e63d652602a3842aa1fca3cb7c.tar.xz
Adapt to skalibs-2.5.0.0
Diffstat (limited to 'src/libs6rc/s6rc_sanitize_dir.c')
-rw-r--r--src/libs6rc/s6rc_sanitize_dir.c5
1 files changed, 2 insertions, 3 deletions
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 <sys/types.h>
-#include <skalibs/bytestr.h>
+#include <string.h>
#include <skalibs/stralloc.h>
#include <skalibs/djbunix.h>
#include <s6-rc/s6rc-utils.h>
@@ -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 ;