Fixed ascii string detection on architectures with unsigned char

This commit is contained in:
Jakub Čajka 2014-08-01 09:16:44 +02:00
parent d9144c5ee0
commit c599471282
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}