Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: rec - for time strings, replace : with -
  • Loading branch information
perexg committed May 31, 2015
1 parent 9037150 commit 59732e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dvr/dvr_rec.c
Expand Up @@ -346,10 +346,13 @@ static htsstr_substitute_t dvr_subs_entry[] = {

static const char *dvr_sub_strftime(const char *id, const void *aux)
{
char fid[8];
char fid[8], *p;
static char buf[40];
snprintf(fid, sizeof(fid), "%%%s", id);
strftime(buf, sizeof(buf), fid, (struct tm *)aux);
for (p = buf; *p; p++)
if (*p == ':')
*p = '-';
return dvr_clean_directory_separator(buf);
}

Expand Down

0 comments on commit 59732e0

Please sign in to comment.