diff -r 39cef8f37eb5 -r 8175ba2b3bcb src/string.c --- a/src/string.c Sun Nov 03 15:35:29 2019 +0100 +++ b/src/string.c Sun Nov 03 16:22:46 2019 +0100 @@ -70,6 +70,8 @@ size_t scstrnlen(size_t n, ...) { + if (n == 0) return 0; + va_list ap; va_start(ap, n);