diff mbox

dvb-apps/util/szap/czap.c "ERROR: cannot parse service data"

Message ID 7b41dd971001251341u64a4496fmb242d7bfcee8648a@mail.gmail.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

klaas de waal Jan. 25, 2010, 9:41 p.m. UTC
None
diff mbox

Patch

diff -r 61b72047a995 Make.rules
--- a/Make.rules	Sun Jan 17 17:03:27 2010 +0100
+++ b/Make.rules	Mon Jan 25 22:27:05 2010 +0100
@@ -1,6 +1,7 @@ 
 # build rules for linuxtv.org dvb-apps

-CFLAGS ?= -g -Wall -W -Wshadow -Wpointer-arith -Wstrict-prototypes
+CFLAGS ?= -g -Wall -W -Wshadow -Wpointer-arith -Wstrict-prototypes \
+-std=gnu99 -Wformat

 ifneq ($(lib_name),)

diff -r 61b72047a995 util/szap/czap.c
--- a/util/szap/czap.c	Sun Jan 17 17:03:27 2010 +0100
+++ b/util/szap/czap.c	Mon Jan 25 22:27:05 2010 +0100
@@ -141,7 +141,7 @@ 
 	}
 	printf("%3d %s", chan_no, chan);

-	if ((sscanf(chan, "%a[^:]:%d:%a[^:]:%d:%a[^:]:%a[^:]:%d:%d\n",
+	if ((sscanf(chan, "%m[^:]:%d:%m[^:]:%d:%m[^:]:%m[^:]:%d:%d\n",
 				&name, &frontend->frequency,
 				&inv, &frontend->u.qam.symbol_rate,
 				&fec, &mod, vpid, apid) != 8)