Explorar el Código

print_number: Fix incorrect output pointer

Max Bruckner hace 8 años
padre
commit
d8d0ae66d3
Se han modificado 1 ficheros con 1 adiciones y 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 */