changeset 1106:33ad2278b2af

Last tweak to this file introduced a bug looping endlessly, failing to proceed past the separator. Oops.
author Rob Landley <rob@landley.net>
date Wed, 09 Jun 2010 11:16:17 -0500
parents 345f49b45123
children 98a4d4f1d464
files sources/toys/ccwrap.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sources/toys/ccwrap.c	Tue Jun 08 18:42:22 2010 -0500
+++ b/sources/toys/ccwrap.c	Wed Jun 09 11:16:17 2010 -0500
@@ -85,6 +85,7 @@
 			return s;
 		} else free(str);
 
+		if (next) next++;
 		path = next;
 	}
 	free(cwd);