Merge pull request #14 from jcajka/master

Fixed ascii string detection on architectures with unsigned char
This commit is contained in:
rockdaboot 2014-08-01 11:37:51 +02:00
commit 4545f647c6
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;
}