mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
more C-compatibily, Thanks Bernhard Fischer
This commit is contained in:
parent
38013e394f
commit
8d3c40d492
@ -670,9 +670,10 @@ static char *process_regex_on_line(char *line, regex_t *pattern) {
|
|||||||
char *line2 = (char *) malloc((sizeof(char) * (strlen(line) + 1)) + 64);
|
char *line2 = (char *) malloc((sizeof(char) * (strlen(line) + 1)) + 64);
|
||||||
char sub_line[256];
|
char sub_line[256];
|
||||||
int prev_eo = 0;
|
int prev_eo = 0;
|
||||||
|
regmatch_t match_structs;
|
||||||
|
|
||||||
memset(sub_line, 0, 256);
|
memset(sub_line, 0, 256);
|
||||||
strcpy(line2, line);
|
strcpy(line2, line);
|
||||||
regmatch_t match_structs;
|
|
||||||
|
|
||||||
match_found = 0;
|
match_found = 0;
|
||||||
match_status = regexec(pattern, line2, 1, &match_structs, 0);
|
match_status = regexec(pattern, line2, 1, &match_structs, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user