commit 357dd5140558a044fe52a2d3ff7abb1153f9968a
parent 0c366552012b5f108f2371a3fca0c9f0eeeec8fb
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date: Thu, 29 Dec 2016 15:06:22 +0100
adjust return type of strnlen() replacement
it doesn't really matter, but it's nicer to stay consistent with the
official prototype.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util.c b/src/util.c
@@ -222,7 +222,7 @@ memrchr( const void *s, int c, size_t n )
#endif
#ifndef HAVE_STRNLEN
-int
+size_t
strnlen( const char *str, size_t maxlen )
{
size_t len;