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 #46

Closed
wants to merge 1 commit into from
Closed

Fix compile error #46

wants to merge 1 commit into from

Conversation

dcooper16
Copy link

libpki 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 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.
@opencrypto
Copy link
Member

Resolved.

@opencrypto opencrypto closed this Aug 26, 2022
@dcooper16 dcooper16 deleted the fix_compile_error branch August 29, 2022 15:43
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

3 participants