summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-06-04 11:33:09 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-06-04 11:33:09 +0200
commiteecf0b661666c2b1e07a4b64333b958adc3ce34d (patch)
tree8f44a38273615ac8773c36c1e3452df01f648a25 /recording.c
parent7bffdb9e82c6ee607f9b7346220828c79323a37a (diff)
downloadvdr-eecf0b661666c2b1e07a4b64333b958adc3ce34d.tar.gz
vdr-eecf0b661666c2b1e07a4b64333b958adc3ce34d.tar.bz2
Fixed handling 'summary.vdr' files with more than two empty lines
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/recording.c b/recording.c
index 93b0af8f..4549b464 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.107 2005/05/29 11:16:57 kls Exp $
+ * $Id: recording.c 1.108 2005/06/04 11:31:24 kls Exp $
*/
#include "recording.h"
@@ -480,8 +480,8 @@ cRecording::cRecording(const char *FileName)
char *data[3] = { NULL };
cReadLine ReadLine;
char *s;
- while ((s = ReadLine.Read(f)) != NULL && line < 3) {
- if (*s) {
+ while ((s = ReadLine.Read(f)) != NULL) {
+ if (*s || line > 1) {
if (data[line]) {
int len = strlen(s);
len += strlen(data[line]) + 1;