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 --- epg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epg.c') diff --git a/epg.c b/epg.c index ee784219..096b68cf 100644 --- a/epg.c +++ b/epg.c @@ -7,7 +7,7 @@ * Original version (as used in VDR before 1.3.0) written by * Robert Schneider and Rolf Hakenes . * - * $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; -- cgit v1.2.3