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 /sources.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 'sources.c')
-rw-r--r-- | sources.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: sources.c 3.4 2013/05/23 10:20:28 kls Exp $ + * $Id: sources.c 3.5 2013/12/28 11:33:08 kls Exp $ */ #include "sources.h" @@ -31,7 +31,7 @@ cSource::~cSource() bool cSource::Parse(const char *s) { char *codeBuf = NULL; - if (2 == sscanf(s, "%a[^ ] %a[^\n]", &codeBuf, &description)) + if (2 == sscanf(s, "%m[^ ] %m[^\n]", &codeBuf, &description)) code = FromString(codeBuf); free(codeBuf); return code != stNone && description && *description; |