memcpy(buf + 20, cccam->cccam_nodeid, 8);
buf[28] = 0; // TODO: wantemus = 1;
memcpy(buf + 29, cccam_version_str[cccam->cccam_version], 32);
- memcpy(buf + 61, "tvh", 32); // build number (ascii)
+ memcpy(buf + 61, "tvh", 3); // build number (ascii)
cccam_send_msg(cccam, MSG_CLI_DATA, buf, 20 + 8 + 1 + 64, 0, 0, 0);
}
year_buf[5] = 0;
const uint16_t year = atoi(year_buf);
/* Sanity check the year before copying it over. */
- if (year && year > 1800 && year < 2500) {
+ if (year > 1800 && year < 2500) {
return epg_episode_set_copyright_year(ee, year, changes);
}
}