summaryrefslogtreecommitdiff
path: root/timers.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-06-11 14:30:26 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-06-11 14:30:26 +0200
commit858937f861f43adfebb64529afaa657c1b0cea00 (patch)
tree8b82de7f866687d007f04a3fe432831e7990b08e /timers.c
parent48a10640e9b9fe51ec7e46d1aa32e29ba16774ca (diff)
downloadvdr-858937f861f43adfebb64529afaa657c1b0cea00.tar.gz
vdr-858937f861f43adfebb64529afaa657c1b0cea00.tar.bz2
Fixed handling timers with a day given as MTWTF--@6
Diffstat (limited to 'timers.c')
-rw-r--r--timers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/timers.c b/timers.c
index 9e31f604..b6307e06 100644
--- a/timers.c
+++ b/timers.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: timers.c 1.31 2005/05/07 11:10:56 kls Exp $
+ * $Id: timers.c 1.32 2005/06/11 14:19:58 kls Exp $
*/
#include "timers.h"
@@ -159,7 +159,7 @@ bool cTimer::ParseDay(const char *s, time_t &Day, int &WeekDays)
else {
// handle "day of month" for compatibility with older versions:
char *tail = NULL;
- int day = strtol(s, &tail, 10);
+ int day = strtol(d, &tail, 10);
if (tail && *tail || day < 1 || day > 31)
return false;
time_t t = time(NULL);