From f75d7c69bfc0da5e588d0ef44bd103eae610c8ea Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 12 May 2011 21:29:28 +0000 Subject: Fix out of bounds array indexing. git-svn-id: http://svn.drobilla.net/serd/trunk@177 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- src/reader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reader.c b/src/reader.c index 8804af8b..44910ddf 100644 --- a/src/reader.c +++ b/src/reader.c @@ -503,7 +503,7 @@ static inline SerdStatus read_lcharacter(SerdReader* reader, Ref dest, SerdNodeFlags* flags) { const uint8_t c = peek_byte(reader); - uint8_t pre[3]; + uint8_t pre[4]; switch (c) { case '"': peek_string(reader, pre, 4); -- cgit v1.2.1