From 6114b08ae0cb3958af2da6b3185471b0cb8dfd68 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 31 Mar 2013 17:13:00 +0000 Subject: Write \uFFFF, not \U0000FFFF. git-svn-id: http://svn.drobilla.net/serd/trunk@448 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 5b896f94..b0e61cb1 100644 --- a/src/writer.c +++ b/src/writer.c @@ -209,7 +209,7 @@ write_character(SerdWriter* writer, const uint8_t* utf8, size_t* size) return sink(utf8, *size, writer); } - if (c < 0xFFFF) { + if (c <= 0xFFFF) { snprintf(escape, sizeof(escape), "\\u%04X", c); return sink(escape, 6, writer); } else { -- cgit v1.2.1