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 logging when linked with C++ binary #16

Merged
merged 7 commits into from
Jun 13, 2020

Conversation

danielealbano
Copy link
Owner

Invoking strftime from a C library that gets linked to a C++ binary triggers a sigsegv, a memory violation occurs causing a fatal crash.

This PR switch to use sprintf to build the timestamp printed out with the logs because the usage is pretty basic and nothing advanced as strftime is required.

@danielealbano danielealbano merged commit 8a50086 into master Jun 13, 2020
@danielealbano danielealbano deleted the fix_logging_when_linked_with_libstdcpp branch June 13, 2020 15:20
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

1 participant