diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-08-29 23:45:45 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-08-29 23:45:45 -0400 |
commit | a30b3f503bede87043262343ed26d6995b0a85d9 (patch) | |
tree | e24031938af531e2d2b308ae0c48f5c2639775b7 /eval.c | |
parent | c14a376ef6effe089d98e2211cb15e4b66e57fc1 (diff) | |
download | bfs-a30b3f503bede87043262343ed26d6995b0a85d9.tar.xz |
darray: New dynamic array library
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -22,6 +22,7 @@ #include "bftw.h" #include "cmdline.h" #include "color.h" +#include "darray.h" #include "diag.h" #include "dstring.h" #include "exec.h" @@ -1339,7 +1340,7 @@ int eval_cmdline(const struct cmdline *cmdline) { struct bftw_args bftw_args = { .paths = cmdline->paths, - .npaths = cmdline->npaths, + .npaths = darray_length(cmdline->paths), .callback = cmdline_callback, .ptr = &args, .nopenfd = infer_fdlimit(cmdline), |