From de87b3865455fb1c626ab701026ac5425bb34185 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 16 Jan 2012 22:52:40 +0000 Subject: 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 --- src/writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/writer.c') 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; -- cgit v1.2.1