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 off-by-one error in h5fget_name_f, HDFFV-11290 #1345

Merged
merged 2 commits into from
Jan 11, 2022
Merged

fixed off-by-one error in h5fget_name_f, HDFFV-11290 #1345

merged 2 commits into from
Jan 11, 2022

Conversation

brtnfld
Copy link
Contributor

@brtnfld brtnfld commented Jan 8, 2022

If an exact size buffer is passed to h5fget_name_f, then the returned filename will be truncated by one due to an error in the C wrapper. This fixes the issue and adds a test.

Copy link

@epourmal epourmal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the comment I missed. Thank you!

@brtnfld
Copy link
Contributor Author

brtnfld commented Jan 10, 2022

Fixed typo.

@brtnfld brtnfld requested a review from lrknox January 10, 2022 23:08
@lrknox lrknox merged commit 80017cb into HDFGroup:develop Jan 11, 2022
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.

3 participants