Skip to content

Commit

Permalink
fix: This line attempts to assign the character following a backslash…
Browse files Browse the repository at this point in the history
… (\) to tmp->ch, but it should assign the current character pointed by regexp after increment, not the next one

This line attempts to assign the character following a backslash (\) to tmp->ch, but it should assign the current character pointed by regexp after increment, not the next one
  • Loading branch information
RealHurrison authored Apr 28, 2024
1 parent 75b7f49 commit 0a17b18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oaf/src/regexp.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ static RE* compile(char *regexp)
}else
{
tmp->type = CHAR;
tmp->ch = *(regexp + 1);
tmp->ch = *regexp;
}
break;
case '.':
Expand Down

0 comments on commit 0a17b18

Please sign in to comment.