summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exec.c b/src/exec.c
index 3ff6f92..90b3598 100644
--- a/src/exec.c
+++ b/src/exec.c
@@ -601,7 +601,7 @@ static int bfs_exec_push(struct bfs_exec *execbuf, char *arg) {
if (execbuf->argc + 1 >= execbuf->argv_cap) {
size_t cap = 2 * execbuf->argv_cap;
- char **argv = realloc(execbuf->argv, sizeof_array(char *, cap));
+ char **argv = REALLOC_ARRAY(char *, execbuf->argv, execbuf->argv_cap, cap);
if (!argv) {
return -1;
}