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 /config.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 'config.c')
-rw-r--r-- | config.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.c 1.10 2000/07/16 11:47:30 kls Exp $ + * $Id: config.c 1.11 2000/07/16 14:28:20 kls Exp $ */ #include "config.h" @@ -318,7 +318,7 @@ bool cTimer::Parse(char *s) { char *buffer1 = NULL; char *buffer2 = NULL; - if (8 == sscanf(s, "%d:%d:%a[^:]:%d:%d:%d:%d:%as", &active, &channel, &buffer1, &start, &stop, &priority, &lifetime, &buffer2)) { + if (8 == sscanf(s, "%d:%d:%a[^:]:%d:%d:%d:%d:%a[^:\n]", &active, &channel, &buffer1, &start, &stop, &priority, &lifetime, &buffer2)) { day = ParseDay(buffer1); strncpy(file, buffer2, MaxFileName - 1); file[strlen(buffer2)] = 0; |