diff mbox

[2/6,dvb-apps] dvbscan: fix infinite loop parsing arguments

Message ID 1399168281-20626-3-git-send-email-jmccrohan@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jonathan McCrohan May 4, 2014, 1:51 a.m. UTC
Reproducible using 'dvbscan -out raw - some_file'

Bug-Debian: http://bugs.debian.org/606728

Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>
---
 util/dvbscan/dvbscan.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/util/dvbscan/dvbscan.c b/util/dvbscan/dvbscan.c
index f23411f..462c275 100644
--- a/util/dvbscan/dvbscan.c
+++ b/util/dvbscan/dvbscan.c
@@ -198,6 +198,7 @@  int main(int argc, char *argv[])
 		} else if (!strcmp(argv[argpos], "-out")) {
 			if ((argc - argpos) < 3)
 				usage();
+				argpos+=3;
 		} else {
 			if ((argc - argpos) != 1)
 				usage();