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

Fixed potential problem with non-NUL-termination of error message string. #285

Merged
merged 5 commits into from Feb 20, 2018

Conversation

ethouris
Copy link
Collaborator

The value to be passed as the last argument to strncpy is the maximum number of characters to be copied. This must include the spare size of one character for zero termination.

Also added a "fallback message" when the XSI-compliant function returns an error.

@rndi rndi merged commit 436ee5a into Haivision:dev Feb 20, 2018
@ethouris ethouris deleted the dev-fix-strerror branch May 28, 2018 08:49
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