summaryrefslogtreecommitdiff
path: root/src/httrack.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-05-03 11:30:41 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-05-03 11:30:41 +0000
commit75faaf7f11c1611f5b98b13b7d6f44c861f857d7 (patch)
tree7e6d354f8391cbfb86807383a617038fa5b97c30 /src/httrack.c
parent26e0b7e748badd2dd95d8b5a0743b0af5ea7f78f (diff)
Fixed zero-length files not being properly handled (not savec on disk, not updated)
Diffstat (limited to 'src/httrack.c')
-rw-r--r--src/httrack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/httrack.c b/src/httrack.c
index ac62ebf..cef7c89 100644
--- a/src/httrack.c
+++ b/src/httrack.c
@@ -486,7 +486,7 @@ static int __cdecl htsshow_loop(t_hts_callbackarg *carg, httrackp *opt, lien_bac
strcatbuff(StatsBuffer[index].name,s+l-MAX_LEN_INPROGRESS/2+2);
}
- if (back[i].r.totalsize>0) { // taille prédéfinie
+ if (back[i].r.totalsize>=0) { // taille prédéfinie
StatsBuffer[index].sizetot=back[i].r.totalsize;
StatsBuffer[index].size=back[i].r.size;
} else { // pas de taille prédéfinie