summaryrefslogtreecommitdiffstats
path: root/rtv4d-dl.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--rtv4d-dl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtv4d-dl.c b/rtv4d-dl.c
index c4343bd..5e0d124 100644
--- a/rtv4d-dl.c
+++ b/rtv4d-dl.c
@@ -816,7 +816,7 @@ int main (int argc, char ** argv) {
RTV_NAPISI(INFO, "ni več kosov v preteklosti");
fclose(fd);
snprintf(fn, sizeof(fn), "%s/%u-%lu%s",
- e, i, cas, strrchr(z->kos_format, '.'));
+ e, i-1, cas, strrchr(z->kos_format, '.'));
unlink(fn);
break;
}