summaryrefslogtreecommitdiffstats
path: root/src/exec.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-11-23 13:18:35 -0500
committerTavian Barnes <tavianator@tavianator.com>2023-11-23 13:56:03 -0500
commit5c91f597459de2c5973c9210a3854a19bbc67577 (patch)
tree338d4804033dad2902178c2cfc10a3835af1eb68 /src/exec.c
parent181e045f0c02d530060d453055934c0d542ed341 (diff)
downloadbfs-5c91f597459de2c5973c9210a3854a19bbc67577.tar.xz
exec: Use the new REALLOC_ARRAY() macro
Diffstat (limited to 'src/exec.c')
-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;
}