From 40a6fe1486c498e41a8c6e1bce07f2c52a9d11e8 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Tue, 25 Oct 2022 23:16:14 -0300 Subject: [PATCH] VISO: Fix tiny mistake in timestamp upper clamping --- src/cdrom/cdrom_image_viso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cdrom/cdrom_image_viso.c b/src/cdrom/cdrom_image_viso.c index 9cac65b70..f4691abdd 100644 --- a/src/cdrom/cdrom_image_viso.c +++ b/src/cdrom/cdrom_image_viso.c @@ -440,7 +440,7 @@ viso_fill_time(uint8_t *data, time_t time, int format, int longform) time_s->tm_mday = 1; } else if (time_s->tm_year > (longform ? 8099 : 255)) { time_s->tm_year = longform ? 8099 : 255; - time_s->tm_mon = 12; + time_s->tm_mon = 11; time_s->tm_mday = 31; time_s->tm_hour = 23; time_s->tm_min = time_s->tm_sec = 59;