Browse Source

print_number: Fix incorrect output pointer

Max Bruckner 8 years ago
parent
commit
d8d0ae66d3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cJSON.c

+ 1 - 1
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 */