aboutsummaryrefslogtreecommitdiff
path: root/xs_url.h
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2026-08-21 17:14:02 +0200
committergrunfink <grunfink@comam.es>2026-08-21 17:14:02 +0200
commit99544bf77226f2889bb1969eea440b2c8716b814 (patch)
tree940a2e7455d00ae4cef0a6f169333eb579d6aa5c /xs_url.h
parent4f27bb07085ab90787870a4422176f29823a798d (diff)
New function xs_html_xtag().
Diffstat (limited to 'xs_url.h')
-rw-r--r--xs_url.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xs_url.h b/xs_url.h
index e25c73b..4986181 100644
--- a/xs_url.h
+++ b/xs_url.h
@@ -118,7 +118,7 @@ xs_str *xs_url_enc(const char *str)
xs_str *s = xs_str_new(NULL);
while (*str) {
- if (isalnum(*str) || strchr("-._~", *str)) {
+ if (isalnum((int)*str) || strchr("-._~", *str)) {
s = xs_append_m(s, str, 1);
}
else {