diff options
| author | Daniel C. Sobral <dcs@FreeBSD.org> | 2000-07-09 15:12:28 +0000 |
|---|---|---|
| committer | Daniel C. Sobral <dcs@FreeBSD.org> | 2000-07-09 15:12:28 +0000 |
| commit | 517bffca1b45921a96a3e1e80e8ee3731345753a (patch) | |
| tree | 8e8c8ce122b9e5950f20ebdf84eed6f6e42e7fa8 /lib/libc/regex/regcomp.c | |
| parent | 832505d0c9b949d2d5b6e6450e6544d67c36d429 (diff) | |
Notes
Diffstat (limited to 'lib/libc/regex/regcomp.c')
| -rw-r--r-- | lib/libc/regex/regcomp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c index f19e09724b45..e0afdcc0f190 100644 --- a/lib/libc/regex/regcomp.c +++ b/lib/libc/regex/regcomp.c @@ -1942,7 +1942,7 @@ struct re_guts *g; if (p->error != 0) return; - g->charjump = malloc((NC + 1) * sizeof(int)); + g->charjump = (int*) malloc((NC + 1) * sizeof(int)); if (g->charjump == NULL) /* Not a fatal error */ return; /* Adjust for signed chars, if necessary */ @@ -1993,13 +1993,13 @@ struct re_guts *g; if (p->error != 0) return; - pmatches = malloc(g->mlen * sizeof(unsigned int)); + pmatches = (int*) malloc(g->mlen * sizeof(unsigned int)); if (pmatches == NULL) { g->matchjump = NULL; return; } - g->matchjump = malloc(g->mlen * sizeof(unsigned int)); + g->matchjump = (int*) malloc(g->mlen * sizeof(unsigned int)); if (g->matchjump == NULL) /* Not a fatal error */ return; |
