Skip to content
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

null char at the end of string #746

Closed
Adam5Wu opened this issue Sep 18, 2017 · 1 comment
Closed

null char at the end of string #746

Adam5Wu opened this issue Sep 18, 2017 · 1 comment
Labels
solution: invalid the issue is not related to the library

Comments

@Adam5Wu
Copy link

Adam5Wu commented Sep 18, 2017

When getting a string field from json, the result string contains a null char at the end of the string (this is in addition to the usual null terminator).
As a result, if you try to append two string field obtained from json, you will get: "string1\0string2\0"

This breaks many UI functions as they generally stop at the first \0.

@Adam5Wu
Copy link
Author

Adam5Wu commented Sep 18, 2017

Sorry, my bad, the \0 is slipped in from upstream, not in this component! :D

@Adam5Wu Adam5Wu closed this as completed Sep 18, 2017
@nlohmann nlohmann added the solution: invalid the issue is not related to the library label Sep 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solution: invalid the issue is not related to the library
Projects
None yet
Development

No branches or pull requests

2 participants