strnlen is not portable