Explorar o código

print_number: Fix incorrect output pointer

Max Bruckner %!s(int64=8) %!d(string=hai) anos
pai
achega
d8d0ae66d3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 */