diff options
| author | Warner Losh <imp@FreeBSD.org> | 1998-09-16 04:17:47 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 1998-09-16 04:17:47 +0000 |
| commit | e8420087b0ae4a2d0611cd2f6413d150cfc83554 (patch) | |
| tree | 69de0b126d131ecd617d41b6eba03770319d92e3 /lib/libedit/tokenizer.c | |
| parent | e9363917832d4d492df8463833be0cd952076fa8 (diff) | |
Notes
Diffstat (limited to 'lib/libedit/tokenizer.c')
| -rw-r--r-- | lib/libedit/tokenizer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libedit/tokenizer.c b/lib/libedit/tokenizer.c index bbe847e2cab2..62c02498177f 100644 --- a/lib/libedit/tokenizer.c +++ b/lib/libedit/tokenizer.c @@ -59,6 +59,7 @@ typedef enum { Q_none, Q_single, Q_double, Q_one, Q_doubleone } quote_t; #define tok_malloc(a) malloc(a) #define tok_free(a) free(a) #define tok_realloc(a, b) realloc(a, b) +#define tok_reallocf(a, b) reallocf(a, b) struct tokenizer { @@ -377,8 +378,8 @@ tok_line(tok, line, argc, argv) if (tok->argc >= tok->amax - 4) { tok->amax += AINCR; - tok->argv = (char **) tok_realloc(tok->argv, - tok->amax * sizeof(char*)); + tok->argv = (char **) tok_reallocf(tok->argv, + tok->amax * sizeof(char*)); } } |
