From: Jaroslav Kysela Date: Sun, 31 May 2015 21:19:30 +0000 (+0200) Subject: DVR: rec - for time strings, replace : with - X-Git-Tag: v4.2.1~2409 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59732e04b596903ec8fb7f1223b535340295c1d5;p=thirdparty%2Ftvheadend.git DVR: rec - for time strings, replace : with - --- diff --git a/src/dvr/dvr_rec.c b/src/dvr/dvr_rec.c index e69bcb9f8..caef45e12 100644 --- a/src/dvr/dvr_rec.c +++ b/src/dvr/dvr_rec.c @@ -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); }