From 6a8a2cf5fb78a244db19a2b49da98e0d1d2d91a0 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 28 Dec 2013 11:37:42 +0100 Subject: Changed '%a' to the POSIX compliant '%m' in all scanf() calls --- sources.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sources.c') 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; -- cgit v1.2.3