summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/ed/re.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ed/re.c b/bin/ed/re.c
index 276094b7d73..9d0a5db97f1 100644
--- a/bin/ed/re.c
+++ b/bin/ed/re.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: re.c,v 1.5 1996/12/14 12:17:57 mickey Exp $ */
+/* $OpenBSD: re.c,v 1.6 1998/01/18 22:02:45 millert Exp $ */
/* $NetBSD: re.c,v 1.14 1995/03/21 09:04:48 cgd Exp $ */
/* re.c: This file contains the regular expression interface routines for
@@ -33,7 +33,7 @@
#if 0
static char *rcsid = "@(#)re.c,v 1.6 1994/02/01 00:34:43 alm Exp";
#else
-static char rcsid[] = "$OpenBSD: re.c,v 1.5 1996/12/14 12:17:57 mickey Exp $";
+static char rcsid[] = "$OpenBSD: re.c,v 1.6 1998/01/18 22:02:45 millert Exp $";
#endif
#endif /* not lint */
@@ -73,7 +73,7 @@ get_compiled_pattern()
return NULL;
}
patlock = 0;
- if ((n = regcomp(exp, exps, 0)) != 0) {
+ if ((n = regcomp(exp, exps, REG_EXTENDED)) != 0) {
regerror(n, exp, errmsg, sizeof errmsg);
free(exp);
return exp = NULL;