aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-01-16 22:52:40 +0000
committerDavid Robillard <d@drobilla.net>2012-01-16 22:52:40 +0000
commitde87b3865455fb1c626ab701026ac5425bb34185 (patch)
treeb022ce454e8a3dcc1182372d53b05d56a8ef31c4
parentafe8dedca6d5f4a42a1951c383b6f5b8dfd827db (diff)
downloadserd-de87b3865455fb1c626ab701026ac5425bb34185.tar.gz
serd-de87b3865455fb1c626ab701026ac5425bb34185.tar.bz2
serd-de87b3865455fb1c626ab701026ac5425bb34185.zip
Avoid non-portable %zu (offset is of dubious value in this case anyway).
git-svn-id: http://svn.drobilla.net/serd/trunk@295 490d8e77-9747-427b-9fa3-0b8f29cee8a0
-rw-r--r--src/writer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/writer.c b/src/writer.c
index 0ea4ea06..469e0090 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -165,7 +165,7 @@ write_text(SerdWriter* writer, TextContext ctx,
size = 4;
c = in & 0x07;
} else {
- fprintf(stderr, "Invalid UTF-8 at offset %zu: %X\n", i, in);
+ fprintf(stderr, "Invalid UTF-8: %X\n", in);
const uint8_t replacement_char[] = { 0xEF, 0xBF, 0xBD };
sink(replacement_char, sizeof(replacement_char), writer);
return false;