summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-03-13 19:52:23 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2018-03-13 19:52:23 -0400
commit33d0a49489c60df4df924bfbc0c7ad98a11dd3ed (patch)
treea48f352deb683552aec5e87317e2ff2100d1b289
parent6aabc97dc9c895cb1bb2423c84c7131bff7dd6c1 (diff)
fix cmd_assemble
-rw-r--r--cmd_assemble.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd_assemble.c b/cmd_assemble.c
index b2a832e..57b2802 100644
--- a/cmd_assemble.c
+++ b/cmd_assemble.c
@@ -25,8 +25,8 @@ int cmd_assemble(int argc, char *argv[])
assemble->nr_devs = nr_devs;
unsigned i;
- for (i = 1; i < argc; i++)
- assemble->devs[i] = (__u64) argv[i];
+ for (i = 0; i < nr_devs; i++)
+ assemble->devs[i] = (__u64) argv[i + 1];
xioctl(bcachectl_open(), BCH_IOCTL_ASSEMBLE, assemble);
return 0;