-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in print_string_ptr() increment is 4 instead of 5 #862
Comments
Well, I do not think this is a bug. for (input_pointer = input; *input_pointer != '\0'; (void)input_pointer , output_pointer ) Which means it will be 4 1 = 5 chars. |
Ah yes, you are correct. That code only needs to increment My mistake ... sorry for the noise. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The sprintf() call before this uses a format string of "ux", which is a
u
followed by 4 hex chars. This means it always prints 5 chars. The increment on this line only increments by 4 instead of 5, which seems to be a bug by inspection.cJSON/cJSON.c
Line 1021 in 3249730
Thank you
The text was updated successfully, but these errors were encountered: