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

lib: fix usage of strncpy #618

Closed
wants to merge 1 commit into from

Conversation

tomi-font
Copy link

Make sure that the copied-to buffer is null-terminated. This fixes the stringop-truncation compilation error.

Make sure that the copied-to buffer is null-terminated.
This fixes the `stringop-truncation` compilation error.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
@arnopo
Copy link
Collaborator

arnopo commented Sep 26, 2024

This PR duplicates #602. We have spoken about the creation of a specific function. Feel free to implement it; otherwise, I plan to do it for the coming release.

@tomi-font
Copy link
Author

Alright. Please go ahead. Can you post a comment here (or ping me) when you put up a PR?

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.

2 participants