X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/96e10f286c055c81d9474e727bf0231a94aa2b43..ecfe3bffa6cc019ba7e358dbe359f10e5ce6a09d:/codec/url.c diff --git a/codec/url.c b/codec/url.c index 3c1fbfd..0de87ae 100644 --- a/codec/url.c +++ b/codec/url.c @@ -67,7 +67,7 @@ static void encode(url_ectx *ctx, dstr *d, const char *p) break; default: if (isspace((unsigned char)*p)) goto unsafe; - else if (isalnum((unsigned char *)p)) goto safe; + else if (isalnum((unsigned char)*p)) goto safe; else if (ctx->f&URLF_LAX) goto safe; else goto unsafe; case '/': case '~':