summaryrefslogtreecommitdiff
path: root/sources.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-12-28 11:37:42 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2013-12-28 11:37:42 +0100
commit6a8a2cf5fb78a244db19a2b49da98e0d1d2d91a0 (patch)
tree1c4295c11bbee8a48638baeb617a1166faef42d6 /sources.c
parentc949ad35cc83462e47fc61d5bee43fc9446bee02 (diff)
downloadvdr-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources.c b/sources.c
index ffaee98a..c2a3dba1 100644
--- a/sources.c
+++ b/sources.c
@@ -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;