From: Jaroslav Kysela Date: Mon, 19 Feb 2018 15:53:22 +0000 (+0100) Subject: xmltv: use atoll instead atoi X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=49c88a80b28beaf0893221cab4d5a81cb3709d37;p=thirdparty%2Ftvheadend.git xmltv: use atoll instead atoi --- 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);