summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2017-10-14 09:56:35 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2017-10-14 09:56:35 +0200
commit1b78f387452e1abcd4cbd64b7dfbd4777e67c79d (patch)
tree57d2b30e8a1e8b4432983f3b3bffff985d2f6864 /src
parent07237aae0e2be0ae0c799cb0ea9aebd127e560b5 (diff)
PhotoRec: Fix for request #36: when the list of recovered files gets to 11 lines, the 11th ("others") makes disappear the "STOP" label.
Diffstat (limited to 'src')
-rw-r--r--src/phnc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/phnc.c b/src/phnc.c
index ee31470..dc5aaea 100644
--- a/src/phnc.c
+++ b/src/phnc.c
@@ -53,7 +53,7 @@ void photorec_info(WINDOW *window, const file_stat_t *file_stats)
new_file_stats=(file_stat_t*)MALLOC(nbr*sizeof(file_stat_t));
memcpy(new_file_stats, file_stats, nbr*sizeof(file_stat_t));
qsort(new_file_stats, nbr, sizeof(file_stat_t), sorfile_stat_ts);
- for(i=0; i<10 && i<nbr && new_file_stats[i].recovered>0; i++)
+ for(i=0; i<9 && i<nbr && new_file_stats[i].recovered>0; i++)
{
wmove(window,12+i,0);
wclrtoeol(window);
@@ -66,7 +66,7 @@ void photorec_info(WINDOW *window, const file_stat_t *file_stats)
others+=new_file_stats[i].recovered;
if(others>0)
{
- wmove(window,12+10,0);
+ wmove(window,12+9,0);
wclrtoeol(window);
wprintw(window, "others: %u recovered\n", others);
}