summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc/port/regex/regcomp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libc/port/regex/regcomp.c')
-rw-r--r--usr/src/lib/libc/port/regex/regcomp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/lib/libc/port/regex/regcomp.c b/usr/src/lib/libc/port/regex/regcomp.c
index 8df8c337cd..d4ab5b40b6 100644
--- a/usr/src/lib/libc/port/regex/regcomp.c
+++ b/usr/src/lib/libc/port/regex/regcomp.c
@@ -1,6 +1,6 @@
/*
* Copyright 2013 Garrett D'Amore <garrett@damore.org>
- * Copyright 2010 Nexenta Systems, Inc. All rights reserved.
+ * Copyright 2019 Nexenta by DDN, Inc. All rights reserved.
* Copyright 2012 Milan Jurik. All rights reserved.
* Copyright (c) 1992, 1993, 1994 Henry Spencer.
* Copyright (c) 1992, 1993, 1994
@@ -1778,7 +1778,7 @@ computejumps(struct parse *p, struct re_guts *g)
if (p->error != 0)
return;
- g->charjump = (int *)malloc((NC + 1) * sizeof (int));
+ g->charjump = (int *)malloc((NC_MAX + 1) * sizeof (int));
if (g->charjump == NULL) /* Not a fatal error */
return;
/* Adjust for signed chars, if necessary */