1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed setting/modifying timers via SVDRP with empty summary fields

This commit is contained in:
Klaus Schmidinger 2001-01-13 11:31:56 +01:00
parent 845c9315e6
commit a7404879aa
2 changed files with 8 additions and 5 deletions

View File

@ -312,7 +312,7 @@ Video Disk Recorder Revision History
an early state and may still cause some problems, but it appears to work nice
already.
2001-01-03: Version 0.70
2001-01-13: Version 0.70
- VDR now requires driver version 0.80 or higher.
- Recordings are now saved in PES mode. Note that you now need to install the
@ -334,3 +334,4 @@ Video Disk Recorder Revision History
- Added Italian language texts (thanks to Alberto Carraro).
- Fixed starting a replay session when the program is currently in "transfer
mode".
- Fixed setting/modifying timers via SVDRP with empty summary fields.

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: config.c 1.35 2000/12/01 16:53:48 kls Exp $
* $Id: config.c 1.36 2001/01/13 11:30:08 kls Exp $
*/
#include "config.h"
@ -435,9 +435,11 @@ bool cTimer::Parse(const char *s)
//XXX to hear about that!
char *s2 = NULL;
int l2 = strlen(s);
if (s[l2 - 2] == ':') { // note that 's' has a trailing '\n'
s2 = (char *)malloc(l2 + 2);
strcat(strn0cpy(s2, s, l2), " \n");
while (l2 > 0 && isspace(s[l2 - 1]))
l2--;
if (s[l2 - 1] == ':') {
s2 = (char *)malloc(l2 + 3);
strcat(strn0cpy(s2, s, l2 + 1), " \n");
s = s2;
}
if (8 <= sscanf(s, "%d:%d:%a[^:]:%d:%d:%d:%d:%a[^:\n]:%a[^\n]", &active, &channel, &buffer1, &start, &stop, &priority, &lifetime, &buffer2, &summary)) {