From d8d0ae66d3c52137598ec59fa21c1ab450030edc Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Thu, 2 Mar 2017 23:48:03 +0100 Subject: [PATCH] print_number: Fix incorrect output pointer --- cJSON.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cJSON.c b/cJSON.c index 1dfd796..c780b77 100644 --- a/cJSON.c +++ b/cJSON.c @@ -409,7 +409,7 @@ static unsigned char *print_number(const cJSON * const item, printbuffer * const return trim_trailing_zeroes(output_buffer); } - return output_buffer->buffer + output_buffer->offset; + return output_buffer->buffer; } /* parse 4 digit hexadecimal number */