From 49c88a80b28beaf0893221cab4d5a81cb3709d37 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 19 Feb 2018 16:53:22 +0100 Subject: [PATCH] xmltv: use atoll instead atoi --- src/epggrab/module/xmltv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/epggrab/module/xmltv.c b/src/epggrab/module/xmltv.c index 6424a5cd9..7b830cc64 100644 --- a/src/epggrab/module/xmltv.c +++ b/src/epggrab/module/xmltv.c @@ -378,7 +378,7 @@ static int _xmltv_parse_date_finished char year_buf[32]; strncpy(year_buf, str, 4); year_buf[5] = 0; - const uint16_t year = atoi(year_buf); + const int64_t year = atoll(year_buf); /* Sanity check the year before copying it over. */ if (year > 1800 && year < 2500) { return epg_broadcast_set_copyright_year(ebc, year, changes); -- 2.47.3