summaryrefslogtreecommitdiff
path: root/tests/run-emitter.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-emitter.c')
-rw-r--r--tests/run-emitter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run-emitter.c b/tests/run-emitter.c
index 6b246fa..d13f29c 100644
--- a/tests/run-emitter.c
+++ b/tests/run-emitter.c
@@ -251,7 +251,7 @@ main(int argc, char *argv[])
yaml_parser_t parser;
yaml_emitter_t emitter;
yaml_event_t event;
- unsigned char buffer[BUFFER_SIZE];
+ unsigned char buffer[BUFFER_SIZE+1];
size_t written = 0;
yaml_event_t events[MAX_EVENTS];
size_t event_number = 0;
@@ -259,7 +259,7 @@ main(int argc, char *argv[])
int count = 0;
int error = 0;
int k;
- memset(buffer, 0, BUFFER_SIZE);
+ memset(buffer, 0, BUFFER_SIZE+1);
memset(events, 0, MAX_EVENTS*sizeof(yaml_event_t));
printf("[%d] Parsing, emitting, and parsing again '%s': ", number, argv[number]);