summaryrefslogtreecommitdiffstats
path: root/usr.bin/grep/grep.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/grep/grep.c')
-rw-r--r--usr.bin/grep/grep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/grep/grep.c b/usr.bin/grep/grep.c
index 9b8b52f..1703c70 100644
--- a/usr.bin/grep/grep.c
+++ b/usr.bin/grep/grep.c
@@ -351,8 +351,8 @@ main(int argc, char *argv[])
}
eargv[++eargc] = NULL;
- aargv = (char **)grep_malloc(sizeof(char *) *
- (eargc + argc + 1));
+ aargv = (char **)grep_calloc(eargc + argc + 1,
+ sizeof(char *));
aargv[0] = argv[0];
for(i = 1; i < eargc; i++)
OpenPOWER on IntegriCloud