summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-08-29 23:45:45 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-08-29 23:45:45 -0400
commita30b3f503bede87043262343ed26d6995b0a85d9 (patch)
treee24031938af531e2d2b308ae0c48f5c2639775b7 /eval.c
parentc14a376ef6effe089d98e2211cb15e4b66e57fc1 (diff)
downloadbfs-a30b3f503bede87043262343ed26d6995b0a85d9.tar.xz
darray: New dynamic array library
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index e2690c0..1b3d211 100644
--- a/eval.c
+++ b/eval.c
@@ -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),