diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-11-23 13:18:35 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-11-23 13:56:03 -0500 |
commit | 5c91f597459de2c5973c9210a3854a19bbc67577 (patch) | |
tree | 338d4804033dad2902178c2cfc10a3835af1eb68 /src/exec.c | |
parent | 181e045f0c02d530060d453055934c0d542ed341 (diff) | |
download | bfs-5c91f597459de2c5973c9210a3854a19bbc67577.tar.xz |
exec: Use the new REALLOC_ARRAY() macro
Diffstat (limited to 'src/exec.c')
-rw-r--r-- | src/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |