Skip to content

Commit

Permalink
Merge pull request #14 from jcajka/master
Browse files Browse the repository at this point in the history
Fixed ascii string detection on architectures with unsigned char
  • Loading branch information
rockdaboot committed Aug 1, 2014
2 parents d9144c5 + c599471 commit 4545f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/psl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4545f64

Please sign in to comment.