From 11d552a5ef98ab91479c7753997b4d9c51803f96 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 15 Jan 2019 15:29:23 +0000 Subject: Add s6-log notifications to examples, prepare for 0.4.1.1 --- src/libs6rc/s6rc_db_read.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/libs6rc') 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 #include -#include + +#include #include #include #include @@ -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 ; } -- cgit v1.2.3