diff options
author | David Robillard <d@drobilla.net> | 2011-05-04 20:56:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-04 20:56:53 +0000 |
commit | 345d1d4b7d726fc63219de124d8a4a13734dc72e (patch) | |
tree | 88e0c2ea7aa7eca2fe8eb7d328775ae014b370e8 | |
parent | 9cdd6c6219e9a103bdaa9249ad270ee54cf62a92 (diff) | |
download | serd-345d1d4b7d726fc63219de124d8a4a13734dc72e.tar.gz serd-345d1d4b7d726fc63219de124d8a4a13734dc72e.tar.bz2 serd-345d1d4b7d726fc63219de124d8a4a13734dc72e.zip |
Fix too-short buffer.
git-svn-id: http://svn.drobilla.net/serd/trunk@156 490d8e77-9747-427b-9fa3-0b8f29cee8a0
-rw-r--r-- | src/writer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |