snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 636d026e133d874daf39a84a7702253454644926
parent 608a92d0bf438373d519946ec3206baccb08922b
Author: default <nobody@localhost>
Date:   Tue,  4 Feb 2025 16:24:21 +0100

More xs_url_dec() fixes.

Diffstat:
Mxs_url.h | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/xs_url.h b/xs_url.h @@ -17,6 +17,9 @@ xs_str *xs_url_dec(const char *str) xs_str *s = xs_str_new(NULL); while (*str) { + if (!xs_is_string(str)) + break; + if (*str == '%') { unsigned int i;