diff options
author | corvid <corvid@lavabit.com> | 2011-11-12 20:35:34 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-11-12 20:35:34 +0000 |
commit | 57b7ee6eb3b0ee9db40ea5a143383ba595c7dad6 (patch) | |
tree | 0fd03d9bc8e33f39e7947ab7d65e151611a1b3e3 /dpi | |
parent | fa8f58b6cd95be0497bc13351ad3479c12e882a4 (diff) |
some isascii()
Diffstat (limited to 'dpi')
-rw-r--r-- | dpi/datauri.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dpi/datauri.c b/dpi/datauri.c index 9088c6aa..f8e2ad94 100644 --- a/dpi/datauri.c +++ b/dpi/datauri.c @@ -44,7 +44,7 @@ static void b64strip_illegal_chars(unsigned char* str) MSG("len=%d{%s}\n", strlen((char*)str), str); for (p = s; (*p = *s); ++s) { - if (isalnum(*p) || strchr("+/=", *p)) + if (isascii(*p) && (isalnum(*p) || strchr("+/=", *p))) ++p; } |