aboutsummaryrefslogtreecommitdiff
path: root/editors/sed.c
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-03-09 15:40:40 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-03-09 15:40:40 +0000
commitf3bd7c4631b0489f93069bf4de127f74a88f90c9 (patch)
tree5465c384d527b4228e87fde4fadd4cc225744d72 /editors/sed.c
parentf50ce3135f347a863e45b974b0751e78cb610f83 (diff)
downloadbusybox-w32-f3bd7c4631b0489f93069bf4de127f74a88f90c9.tar.gz
busybox-w32-f3bd7c4631b0489f93069bf4de127f74a88f90c9.tar.bz2
busybox-w32-f3bd7c4631b0489f93069bf4de127f74a88f90c9.zip
Fix a delimiter matching bug i introduced.
Diffstat (limited to 'editors/sed.c')
-rw-r--r--editors/sed.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/editors/sed.c b/editors/sed.c
index ac765c83f..ddd4780d3 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -193,6 +193,7 @@ static int get_address(char *delimiter, char *my_str, int *linenum, regex_t **re
193 else if (my_str[idx] == '/' || my_str[idx] == '\\') { 193 else if (my_str[idx] == '/' || my_str[idx] == '\\') {
194 int idx_start = 1; 194 int idx_start = 1;
195 195
196 *delimiter = '/';
196 if (my_str[idx] == '\\') { 197 if (my_str[idx] == '\\') {
197 idx_start++; 198 idx_start++;
198 *delimiter = my_str[++idx]; 199 *delimiter = my_str[++idx];