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

Fix line truncation on printing null character via *printf() functions #50

Merged
merged 1 commit into from Jul 20, 2017
Merged

Fix line truncation on printing null character via *printf() functions #50

merged 1 commit into from Jul 20, 2017

Conversation

xaizek
Copy link
Contributor

@xaizek xaizek commented Jul 9, 2016

Using strlen() in these two places is bad idea because it stops at the first '\0' and only prefix of formatted string is printed.

I tried to update tests, but couldn't embed null character in cmake string and those in captured output of printf seem to be completely ignored by it either on input or in regular expression engine...

Using strlen() in these two places results in wrong calculation of
bytes then should actually be written.
@cehoffman
Copy link
Collaborator

Thanks @xaizek

@cehoffman cehoffman merged commit 399e3b1 into ku1ik:master Jul 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants