X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/abcb5d8720e264d76f9db2db0497de21fa832602..962e9e9cfd5b88a255c083110132e5ee417da209:/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 '~':