changeset 37:a5d4693483af

Fix hang while parsing long options
author lost@l-w.ca
date Fri, 01 Apr 2011 23:58:55 -0600
parents 5325b640424d
children 7e92484cfbc3
files lwlib/lw_cmdline.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lwlib/lw_cmdline.c	Tue Feb 08 22:42:12 2011 -0700
+++ b/lwlib/lw_cmdline.c	Fri Apr 01 23:58:55 2011 -0600
@@ -430,6 +430,7 @@
 		lw_free(tstr);
 		tstr = argv[i] + cch;
 		cch = 0;
+		i++;
 		
 	common:
 		/* j will be the offset into the option table when we get here */