diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2013-12-28 11:37:42 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2013-12-28 11:37:42 +0100 |
commit | 6a8a2cf5fb78a244db19a2b49da98e0d1d2d91a0 (patch) | |
tree | 1c4295c11bbee8a48638baeb617a1166faef42d6 /timers.c | |
parent | c949ad35cc83462e47fc61d5bee43fc9446bee02 (diff) | |
download | vdr-6a8a2cf5fb78a244db19a2b49da98e0d1d2d91a0.tar.gz vdr-6a8a2cf5fb78a244db19a2b49da98e0d1d2d91a0.tar.bz2 |
Changed '%a' to the POSIX compliant '%m' in all scanf() calls
Diffstat (limited to 'timers.c')
-rw-r--r-- | timers.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: timers.c 2.18 2013/03/29 15:37:16 kls Exp $ + * $Id: timers.c 3.1 2013/12/28 11:33:08 kls Exp $ */ #include "timers.h" @@ -296,7 +296,7 @@ bool cTimer::Parse(const char *s) char *filebuffer = NULL; free(aux); aux = NULL; - //XXX Apparently sscanf() doesn't work correctly if the last %a argument + //XXX Apparently sscanf() doesn't work correctly if the last %m argument //XXX results in an empty string (this first occurred when the EIT gathering //XXX was put into a separate thread - don't know why this happens... //XXX As a cure we copy the original string and add a blank. @@ -312,7 +312,7 @@ bool cTimer::Parse(const char *s) s = s2; } bool result = false; - if (8 <= sscanf(s, "%u :%a[^:]:%a[^:]:%d :%d :%d :%d :%a[^:\n]:%a[^\n]", &flags, &channelbuffer, &daybuffer, &start, &stop, &priority, &lifetime, &filebuffer, &aux)) { + if (8 <= sscanf(s, "%u :%m[^:]:%m[^:]:%d :%d :%d :%d :%m[^:\n]:%m[^\n]", &flags, &channelbuffer, &daybuffer, &start, &stop, &priority, &lifetime, &filebuffer, &aux)) { ClrFlags(tfRecording); if (aux && !*skipspace(aux)) { free(aux); |