Merge remote-tracking branch 'origin/pr/196'

This commit is contained in:
Adam Sutton 2012-12-30 12:22:53 +00:00
commit 5d72981143

View file

@ -1078,8 +1078,8 @@ size_t epg_episode_number_format
if ( cfmt && num.e_cnt )
i+= snprintf(&buf[i], len-i, cfmt, num.e_cnt);
} else if ( num.text ) {
strncpy(buf, num.text, len);
i = strlen(buf);
if (pre) i += snprintf(&buf[i], len-i, "%s", pre);
i += snprintf(&buf[i], len-i, "%s", num.text);
}
return i;
}