aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/n3.c')
-rw-r--r--src/n3.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/n3.c b/src/n3.c
index 0037c829..1a9bfaeb 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -646,10 +646,12 @@ read_IRIREF(SerdReader* reader)
if (c <= 0x20) {
if (isprint(c)) {
r_err(reader, SERD_ERR_BAD_SYNTAX,
- "invalid IRI character `%c' (escape %%%02X)\n", c, c);
+ "invalid IRI character `%c' (escape %%%02X)\n",
+ c, (unsigned)c);
} else {
r_err(reader, SERD_ERR_BAD_SYNTAX,
- "invalid IRI character (escape %%%02X)\n", c, c);
+ "invalid IRI character (escape %%%02X)\n",
+ (unsigned)c);
}
if (reader->strict) {
return pop_node(reader, ref);