From 9faee7735a4c782c124d642df07b7789b6d3d8d7 Mon Sep 17 00:00:00 2001 From: Kevin Hendricks <kevinhendricks@users.noreply.github.com> Date: Thu, 3 Dec 2015 10:47:23 -0500 Subject: [PATCH 3/4] Fix error mesage use of return value form vnsprintf --- src/error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error.c b/src/error.c index 61f435e..6b184ed 100644 --- a/src/error.c +++ b/src/error.c @@ -59,7 +59,7 @@ static int print_message( } #endif - if (bytes_written > remaining_capacity) { + if (bytes_written >= remaining_capacity) { gumbo_string_buffer_reserve( parser, output->capacity + bytes_written, output); remaining_capacity = output->capacity - output->length; -- 2.21.0