From 43b676a6e2bd88eacd9308d4267f7b81c65a304c Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Mon, 19 Nov 2018 23:25:16 -0500 Subject: [PATCH] fix indexing of truncate targets --- src/truncate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/truncate.cpp b/src/truncate.cpp index b2ecc648..904020d5 100644 --- a/src/truncate.cpp +++ b/src/truncate.cpp @@ -62,7 +62,7 @@ _truncate_loop(const vector &basepaths, error = -1; for(size_t i = 0, ei = basepaths.size(); i != ei; i++) { - error = _truncate_loop_core(basepaths[0],fusepath,size,error); + error = _truncate_loop_core(basepaths[i],fusepath,size,error); } return -error;