]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
xmltv: use atoll instead atoi
authorJaroslav Kysela <perex@perex.cz>
Mon, 19 Feb 2018 15:53:22 +0000 (16:53 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 19 Feb 2018 15:53:22 +0000 (16:53 +0100)
src/epggrab/module/xmltv.c

index 6424a5cd94f0dd7960b8818d52cf6e9496f6db2f..7b830cc640fa3cf751ca1c807feed00f446f2116 100644 (file)
@@ -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);