Skip to content

Commit 6d2fe65

Browse files
committed
Be consistent about types
Uses size_t for all lenghts.
1 parent 0a314e8 commit 6d2fe65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/XCCDF/item.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ void xccdf_item_add_applicable_platform(struct xccdf_item *item, xmlTextReaderPt
767767
int rc = pcre_exec(regex, NULL, platform_idref, strlen(platform_idref), 0, 0, ovector, OVECTOR_LEN);
768768
/* 1 pattern + 2 groups = 3 */
769769
if (rc == 3) {
770-
int match_len = ovector[1] - ovector[0];
770+
size_t match_len = ovector[1] - ovector[0];
771771
/* match_len + 1 underscore + 1 zero byte */
772772
char *alternate_platform_idref = malloc(match_len + 1 + 1);
773773
int first_group_start = ovector[2];

0 commit comments

Comments
 (0)