aboutsummaryrefslogtreecommitdiffstats
path: root/src/uri.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uri.c')
-rw-r--r--src/uri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uri.c b/src/uri.c
index 543b2305..7b172e42 100644
--- a/src/uri.c
+++ b/src/uri.c
@@ -78,7 +78,7 @@ serd_file_uri_parse(const uint8_t* uri, uint8_t** hostname)
if (*(s + 1) == '%') {
serd_chunk_sink("%", 1, &chunk);
++s;
- } else if (is_digit(*(s + 1)) && is_digit(*(s + 2))) {
+ } else if (is_hexdig(*(s + 1)) && is_hexdig(*(s + 2))) {
const uint8_t code[3] = { *(s + 1), *(s + 2), 0 };
uint32_t num;
sscanf((const char*)code, "%X", &num);