The ndx arg passed to increment_active_files() is now the unique,
authorWayne Davison <wayned@samba.org>
Sat, 3 Feb 2007 05:13:14 +0000 (05:13 +0000)
committerWayne Davison <wayned@samba.org>
Sat, 3 Feb 2007 05:13:14 +0000 (05:13 +0000)
over-the-wire value, making it consistent with the ndx arg that
is passed to decrement_active_files().

io.c

diff --git a/io.c b/io.c
index 873d27e..3b857bf 100644 (file)
--- a/io.c
+++ b/io.c
@@ -398,7 +398,7 @@ void increment_active_files(int ndx, int itemizing, enum logcode code)
        }
 
        active_filecnt++;
-       active_bytecnt += F_LENGTH(cur_flist->files[ndx]);
+       active_bytecnt += F_LENGTH(cur_flist->files[ndx - cur_flist->ndx_start]);
 }
 
 static void decrement_active_files(int ndx)