[BusyBox-cvs] busybox/editors sed.c,1.157,1.158

Rob Landley landley at busybox.net
Sun Jan 4 06:42:16 UTC 2004


Update of /var/cvs/busybox/editors
In directory nail:/tmp/cvs-serv12928/editors

Modified Files:
	sed.c 
Log Message:

Thinko in s//options.  (Whitespace skipping in the wrong place.)


Index: sed.c
===================================================================
RCS file: /var/cvs/busybox/editors/sed.c,v
retrieving revision 1.157
retrieving revision 1.158
diff -u -d -r1.157 -r1.158
--- sed.c	23 Dec 2003 08:53:51 -0000	1.157
+++ sed.c	4 Jan 2004 06:42:14 -0000	1.158
@@ -344,10 +344,11 @@
 				sed_cmd->which_match=(unsigned short)strtol(substr+idx,&pos,10);
 				idx=pos-substr;
 			}
-			/* Skip spaces */
-			if(isspace(substr[idx])) continue;
 			continue;
 		}
+		/* Skip spaces */
+		if(isspace(substr[idx])) continue;
+
 		switch (substr[idx]) {
 			/* Replace all occurrences */
 			case 'g':




More information about the busybox-cvs mailing list