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 compile error in 0.9.0 #47

Merged
merged 1 commit into from
Aug 26, 2022
Merged

Fix compile error in 0.9.0 #47

merged 1 commit into from
Aug 26, 2022

Conversation

dcooper16
Copy link

libpki 0.9.0 will not compile on CentOS 8. It fails with an error on line 86 of src/pki_config.c:

error: 'strncpy' specified bound depends on the length of the source argument.

Since the destination buffer, ret, is allocated a buffer of size strlen(my_search)+1, there doesn't seem to be a reason to use strncpy rather than strcpy.

libpki 0.9.0 will not compile on CentOS 8. It fails with an error on line 86 of src/pki_config.c:

 error: 'strncpy' specified bound depends on the length of the source argument.

Since the destination buffer, ret, is allocated a buffer of size strlen(my_search)+1, there doesn't seem to be a reason to use strncpy rather than strcpy.
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