summaryrefslogtreecommitdiff
path: root/src/libs6rc
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-01-15 15:29:23 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-01-15 15:29:23 +0000
commit11d552a5ef98ab91479c7753997b4d9c51803f96 (patch)
tree5404eb0bfe6186d9fead4fdda389251862e36503 /src/libs6rc
parentfe36511943321c2be1d00fe41d3fe4b784c5acb4 (diff)
downloads6-rc-11d552a5ef98ab91479c7753997b4d9c51803f96.tar.xz
Add s6-log notifications to examples, prepare for 0.4.1.1
Diffstat (limited to 'src/libs6rc')
-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 ;
}