From 0a2235b3a5d5f7daabf5233220f58eea848fe831 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 14 Jan 2020 11:36:25 -0500 Subject: fix escape of ( --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1