aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/writer.c b/src/writer.c
index a265201d..94c03f06 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -257,7 +257,7 @@ write_uri(SerdWriter* writer, const uint8_t* utf8, size_t n_bytes)
// Corrupt input, write percent-encoded bytes and scan to next start
char escape[4] = {0, 0, 0, 0};
for (; i < n_bytes && (utf8[i] & 0x80); ++i) {
- snprintf(escape, sizeof(escape), "%%%02X", (uint8_t)utf8[i]);
+ snprintf(escape, sizeof(escape), "%%%02X", utf8[i]);
len += sink(escape, 3, writer);
}
}