Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addressing: /home/jcerny/openscap/src/XCCDF_POLICY/xccdf_policy_remediate.c: In function ‘_comment_multiline_text’: /home/jcerny/openscap/src/XCCDF_POLICY/xccdf_policy_remediate.c:845:5: warning: ‘strncpy’ output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] strncpy(buffer + result_len, filler, filler_len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/jcerny/openscap/src/XCCDF_POLICY/xccdf_policy_remediate.c:852:4: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(buffer + result_len, token, token_len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/jcerny/openscap/src/XCCDF_POLICY/xccdf_policy_remediate.c:837:16: note: length computed here token_len = strlen(token); ^~~~~~~~~~~~~
- Loading branch information