diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-04-12 10:06:21 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-04-12 10:06:21 +0200 |
commit | 7c84508417b9831b364947b4d7882209db50d4e8 (patch) | |
tree | b17c1b64b941b8164575946292522d8fb7748923 /recording.c | |
parent | e58802d2a0a04e860dcd9bb2db8f03b0f9c3402e (diff) | |
download | vdr-7c84508417b9831b364947b4d7882209db50d4e8.tar.gz vdr-7c84508417b9831b364947b4d7882209db50d4e8.tar.bz2 |
Implemented a 'resume ID' which allows several users to each have their own resume.vdr files
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recording.c b/recording.c index 38ad0c85..261bee8b 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.74 2003/03/30 13:26:20 kls Exp $ + * $Id: recording.c 1.75 2003/04/12 09:51:44 kls Exp $ */ #include "recording.h" @@ -42,7 +42,7 @@ #define NAMEFORMAT "%s/%s/" nameFORMAT // end of implementation for brain dead systems -#define RESUMEFILESUFFIX "/resume.vdr" +#define RESUMEFILESUFFIX "/resume%s%s.vdr" #define SUMMARYFILESUFFIX "/summary.vdr" #define MARKSFILESUFFIX "/marks.vdr" @@ -154,7 +154,7 @@ cResumeFile::cResumeFile(const char *FileName) fileName = MALLOC(char, strlen(FileName) + strlen(RESUMEFILESUFFIX) + 1); if (fileName) { strcpy(fileName, FileName); - strcat(fileName, RESUMEFILESUFFIX); + sprintf(fileName + strlen(fileName), RESUMEFILESUFFIX, Setup.ResumeID ? "." : "", Setup.ResumeID ? itoa(Setup.ResumeID) : ""); } else esyslog("ERROR: can't allocate memory for resume file name"); |