Skip to content

Commit 3acb5cc

Browse files
committed
Fix unsigned difference expression compared to zero
Fixes: https://github.com/OpenSCAP/openscap/security/code-scanning/1414
1 parent 0cdf676 commit 3acb5cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/XCCDF_POLICY/xccdf_policy_remediate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ static inline int _parse_ansible_fix(const char *fix_text, struct oscap_list *va
790790
int ovector[9];
791791

792792
const size_t fix_text_len = strlen(fix_text);
793-
int start_offset = 0;
793+
size_t start_offset = 0;
794794
while (true) {
795795
const int match = oscap_pcre_exec(re, fix_text, fix_text_len, start_offset,
796796
0, ovector, sizeof(ovector) / sizeof(ovector[0]));

0 commit comments

Comments
 (0)