diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-03-09 15:40:40 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-03-09 15:40:40 +0000 |
commit | c89cb89185a967212b2a80224beb082101391aed (patch) | |
tree | 5465c384d527b4228e87fde4fadd4cc225744d72 | |
parent | d3a69b6dcc89abf72788454dfa388bd6108ef459 (diff) | |
download | busybox-w32-c89cb89185a967212b2a80224beb082101391aed.tar.gz busybox-w32-c89cb89185a967212b2a80224beb082101391aed.tar.bz2 busybox-w32-c89cb89185a967212b2a80224beb082101391aed.zip |
Fix a delimiter matching bug i introduced.
git-svn-id: svn://busybox.net/trunk/busybox@6726 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | editors/sed.c | 1 |
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]; |