diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2000-07-16 15:02:33 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2000-07-16 15:02:33 +0200 |
commit | d0179ea21969cdc9c8d98154b84fd0106be83078 (patch) | |
tree | 5af53068ef6cbcbc395f61a8d79db4496a482ac9 /recording.c | |
parent | 685e0f6951fadcc7723374ca2e0769771f3ef3bb (diff) | |
download | vdr-d0179ea21969cdc9c8d98154b84fd0106be83078.tar.gz vdr-d0179ea21969cdc9c8d98154b84fd0106be83078.tar.bz2 |
Improved handling of blanks in channel and timer names
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/recording.c b/recording.c index 714c7f13..3e9df374 100644 --- a/recording.c +++ b/recording.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.c 1.10 2000/07/16 13:41:45 kls Exp $ + * $Id: recording.c 1.11 2000/07/16 14:21:37 kls Exp $ */ #define _GNU_SOURCE @@ -141,6 +141,7 @@ cRecording::cRecording(const char *FileName) name = new char[p - FileName + 1]; strncpy(name, FileName, p - FileName); name[p - FileName] = 0; + strreplace(name, '_', ' '); } } } @@ -157,6 +158,8 @@ const char *cRecording::FileName(void) if (!fileName) { struct tm *t = localtime(&start); asprintf(&fileName, NAMEFORMAT, BaseDir, name, t->tm_year + 1900, t->tm_mon + 1, t->tm_mday, t->tm_hour, t->tm_min, priority, lifetime); + if (fileName) + strreplace(fileName, ' ', '_'); } return fileName; } |