diff options
Diffstat (limited to 'lib/libc/regex/regfree.c')
-rw-r--r-- | lib/libc/regex/regfree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/regex/regfree.c b/lib/libc/regex/regfree.c index cd6b3dc..4266d1c 100644 --- a/lib/libc/regex/regfree.c +++ b/lib/libc/regex/regfree.c @@ -46,6 +46,7 @@ static char sccsid[] = "@(#)regfree.c 8.3 (Berkeley) 3/20/94"; #include <sys/types.h> #include <stdio.h> #include <stdlib.h> +#include <limits.h> #include <regex.h> #include "utils.h" @@ -79,7 +80,7 @@ regex_t *preg; if (g->must != NULL) free(g->must); if (g->charjump != NULL) - free(g->charjump); + free(&g->charjump[CHAR_MIN]); if (g->matchjump != NULL) free(g->matchjump); free((char *)g); |