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 /epg.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 'epg.c')
-rw-r--r-- | epg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -7,7 +7,7 @@ * Original version (as used in VDR before 1.3.0) written by * Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>. * - * $Id: epg.c 3.2 2013/08/31 13:21:09 kls Exp $ + * $Id: epg.c 3.3 2013/12/28 11:33:08 kls Exp $ */ #include "epg.h" @@ -32,7 +32,7 @@ cString tComponent::ToString(void) bool tComponent::FromString(const char *s) { unsigned int Stream, Type; - int n = sscanf(s, "%X %02X %7s %a[^\n]", &Stream, &Type, language, &description); // 7 = MAXLANGCODE2 - 1 + int n = sscanf(s, "%X %02X %7s %m[^\n]", &Stream, &Type, language, &description); // 7 = MAXLANGCODE2 - 1 if (n != 4 || isempty(description)) { free(description); description = NULL; |