Skip to content

Commit 78fdb80

Browse files
committed
Fix type in oscap_pcre_exec
Should be size_t not int, per the types on pcre2_match_8.
1 parent d1f501c commit 78fdb80

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common/oscap_pcre.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ void oscap_pcre_set_match_limit_recursion(oscap_pcre_t *opcre, unsigned long lim
131131
}
132132

133133
int oscap_pcre_exec(const oscap_pcre_t *opcre, const char *subject,
134-
int length, int startoffset, oscap_pcre_options_t options,
134+
size_t length, size_t startoffset, oscap_pcre_options_t options,
135135
int *ovector, int ovecsize)
136136
{
137137
int rc = 0;

src/common/oscap_pcre.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ oscap_pcre_t* oscap_pcre_compile(const char *pattern, oscap_pcre_options_t optio
7373
* negative error code on failure
7474
*/
7575
int oscap_pcre_exec(const oscap_pcre_t *opcre, const char *subject,
76-
int length, int startoffset, oscap_pcre_options_t options,
76+
size_t length, size_t startoffset, oscap_pcre_options_t options,
7777
int *ovector, int ovecsize);
7878

7979
/**

0 commit comments

Comments
 (0)