mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-11-01 13:10:45 +00:00
print_number: Fix incorrect output pointer
This commit is contained in:
1 parent
9d07917feb
commit
d8d0ae66d3
1 file changed
+1
-1
@@ -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 */
|
||||||
|
|||||||
Reference in new issue
Block a user