From 345d1d4b7d726fc63219de124d8a4a13734dc72e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 4 May 2011 20:56:53 +0000 Subject: Fix too-short buffer. git-svn-id: http://svn.drobilla.net/serd/trunk@156 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- src/writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/writer.c b/src/writer.c index 6794439a..ce9a5e1e 100644 --- a/src/writer.c +++ b/src/writer.c @@ -64,7 +64,7 @@ static bool write_text(SerdWriter* writer, TextContext ctx, const uint8_t* utf8, size_t n_bytes, uint8_t terminator) { - char escape[10] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; + char escape[11] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; for (size_t i = 0; i < n_bytes;) { uint8_t in = utf8[i++]; switch (in) { -- cgit v1.2.1