[BusyBox-cvs] busybox/editors sed.c,1.117,1.118

Glenn McGrath bug1 at busybox.net
Sun Mar 30 08:40:13 UTC 2003


Update of /var/cvs/busybox/editors
In directory winder:/tmp/cvs-serv14902/editors

Modified Files:
	sed.c 
Log Message:
Small fix for sed 'y' command


Index: sed.c
===================================================================
RCS file: /var/cvs/busybox/editors/sed.c,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -d -r1.117 -r1.118
--- sed.c	30 Mar 2003 08:02:18 -0000	1.117
+++ sed.c	30 Mar 2003 08:40:09 -0000	1.118
@@ -343,7 +343,7 @@
 		sed_cmd->translate[i * 2] = match[i];
 		sed_cmd->translate[(i * 2) + 1] = replace[i];
 	}
-	return(idx);
+	return(idx + 1);
 }
 
 static int parse_edit_cmd(sed_cmd_t *sed_cmd, const char *editstr)




More information about the busybox-cvs mailing list