Fix a delimiter matching bug i introduced.
authorGlenn L McGrath <bug1@ihug.co.nz>
Sun, 9 Mar 2003 15:40:40 +0000 (15:40 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Sun, 9 Mar 2003 15:40:40 +0000 (15:40 -0000)
editors/sed.c

index ac765c83f3e67be5d0a8d6c700b16f9fb466e5e5..ddd4780d326932a54714507143b5f4358860414e 100644 (file)
@@ -193,6 +193,7 @@ static int get_address(char *delimiter, char *my_str, int *linenum, regex_t **re
        else if (my_str[idx] == '/' || my_str[idx] == '\\') {
                int idx_start = 1;
 
+               *delimiter = '/';
                if (my_str[idx] == '\\') {
                        idx_start++;
                        *delimiter = my_str[++idx];