TAILQ_INIT(cuts);
/* Get base filename */
- // TODO: harcoded 3 for max extension
+ // TODO: harcoded 3 for max extension plus 1 for termination
path = alloca(strlen(filename) + 4);
strcpy(path, filename);
sptr = strrchr(path, '.');
char *path, *dot;
int i;
- // TODO: harcoded 3 for max extension
- path = alloca(strlen(s) + 4);
+ // TODO: harcoded 3 for max extension, plus 1 for . and one for termination
+ path = alloca(strlen(s) + 5);
/* Check each cutlist extension */
for (i = 0; i < ARRAY_SIZE(dvr_cutpoint_parsers); i++) {