summaryrefslogtreecommitdiffstats
path: root/src/dirn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-09-11 20:43:10 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-09-11 20:43:10 +0200
commitb954dcea2737bbe9c4f37fbc937a35b247293df0 (patch)
tree2806e63414c155825316e683b677ec63c861fb3a /src/dirn.c
parentcc9e80f3076748abb230159970f0c508b58c4172 (diff)
Fix number of file copied
Diffstat (limited to 'src/dirn.c')
-rw-r--r--src/dirn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dirn.c b/src/dirn.c
index 990a661..8c3ef37 100644
--- a/src/dirn.c
+++ b/src/dirn.c
@@ -756,9 +756,9 @@ static int copy_selection(file_info_t*dir_list, WINDOW *window, disk_t *disk, co
{
copy_progress(window, *copy_ok, *copy_bad);
if(dir_data->copy_file(disk, partition, dir_data, tmp) == 0)
- copy_ok++;
+ (*copy_ok)++;
else
- copy_bad++;
+ (*copy_bad)++;
}
}
dir_data->current_directory[current_directory_namelength]='\0';