summaryrefslogtreecommitdiff
path: root/src/libs6rc/s6rc_db_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs6rc/s6rc_db_read.c')
-rw-r--r--src/libs6rc/s6rc_db_read.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libs6rc/s6rc_db_read.c b/src/libs6rc/s6rc_db_read.c
index 717382f..08323c7 100644
--- a/src/libs6rc/s6rc_db_read.c
+++ b/src/libs6rc/s6rc_db_read.c
@@ -2,7 +2,8 @@
#include <string.h>
#include <stdint.h>
-#include <skalibs/bytestr.h>
+
+#include <skalibs/posixplz.h>
#include <skalibs/buffer.h>
#include <skalibs/env.h>
#include <skalibs/djbunix.h>
@@ -19,7 +20,7 @@
static int s6rc_db_check_valid_string (char const *string, size_t stringlen, size_t pos)
{
if (pos >= stringlen) return 0 ;
- if (str_nlen(string + pos, stringlen - pos) == stringlen - pos) return 0 ;
+ if (strnlen(string + pos, stringlen - pos) == stringlen - pos) return 0 ;
return 1 ;
}