From c599471282fcc0a17a709774570c99b8b30e56a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C4=8Cajka?= Date: Fri, 1 Aug 2014 09:16:44 +0200 Subject: [PATCH] Fixed ascii string detection on architectures with unsigned char --- src/psl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/psl.c b/src/psl.c index 9798e61..f03c081 100644 --- a/src/psl.c +++ b/src/psl.c @@ -479,7 +479,7 @@ const char *psl_registrable_domain(const psl_ctx_t *psl, const char *domain) static int _str_is_ascii(const char *s) { - while (*s > 0) s++; + while (*s > 0 && *s < 128) s++; return !*s; }