mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
print_number: Fix incorrect output pointer
This commit is contained in:
parent
9d07917feb
commit
d8d0ae66d3
2
cJSON.c
2
cJSON.c
@ -409,7 +409,7 @@ static unsigned char *print_number(const cJSON * const item, printbuffer * const
|
|||||||
return trim_trailing_zeroes(output_buffer);
|
return trim_trailing_zeroes(output_buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
return output_buffer->buffer + output_buffer->offset;
|
return output_buffer->buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* parse 4 digit hexadecimal number */
|
/* parse 4 digit hexadecimal number */
|
||||||
|
Loading…
Reference in New Issue
Block a user