summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-10-24 15:49:00 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-10-24 15:49:00 +0200
commitd8a8e3798804c4b04ec0921535563df80645db3d (patch)
treea6f879fc2088488da07f5c89d2c8dc0d1e02177b
parent40a7b8505a22f105d8826eb740d098cbad91464e (diff)
downloadvdr-d8a8e3798804c4b04ec0921535563df80645db3d.tar.gz
vdr-d8a8e3798804c4b04ec0921535563df80645db3d.tar.bz2
Fixed handling comments in editing marks1.2.6pre3
-rw-r--r--HISTORY1
-rw-r--r--recording.c6
2 files changed, 3 insertions, 4 deletions
diff --git a/HISTORY b/HISTORY
index f92627f5..14b3db40 100644
--- a/HISTORY
+++ b/HISTORY
@@ -2443,3 +2443,4 @@ Video Disk Recorder Revision History
- Improved cDvbDevice::StillPicture() (thanks to Oliver Endriss).
- Continuing learning remote control keys in case one rc fails (thanks to
Oliver Endriss).
+- Fixed handling comments in editing marks.
diff --git a/recording.c b/recording.c
index b6e47c55..b6e6cac2 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.84 2003/10/17 14:36:58 kls Exp $
+ * $Id: recording.c 1.84.1.1 2003/10/24 15:49:00 kls Exp $
*/
#include "recording.h"
@@ -681,10 +681,8 @@ bool cMark::Parse(const char *s)
const char *p = strchr(s, ' ');
if (p) {
p = skipspace(p);
- if (*p) {
+ if (*p)
comment = strdup(p);
- comment[strlen(comment) - 1] = 0; // strips trailing newline
- }
}
return true;
}