summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 8e7d957..378614c 100644
--- a/main.c
+++ b/main.c
@@ -44,7 +44,7 @@ static bool matches(const char * restrict path, const regex_t * restrict re)
char *find_main(char **sources)
{
regex_t re;
- int rc = regcomp(&re, "int[[:space:]]+main[[:space:]\(]", REG_EXTENDED | REG_NEWLINE | REG_NOSUB);
+ int rc = regcomp(&re, "int[[:space:]]+main[[:space:]\\(]", REG_EXTENDED | REG_NEWLINE | REG_NOSUB);
assert(rc == 0);
char *ret = NULL;