increment pointer by runelen(delim) not 1
This commit is contained in:
parent
c82425e128
commit
ad6da18ca6
4
sed.c
4
sed.c
|
@ -860,7 +860,7 @@ get_s_arg(Cmd *c, char *s)
|
||||||
/* FIXME: different eregcomp that calls fatal */
|
/* FIXME: different eregcomp that calls fatal */
|
||||||
eregcomp(c->u.s.re, s, 0);
|
eregcomp(c->u.s.re, s, 0);
|
||||||
}
|
}
|
||||||
s = p + 1;
|
s = p + runelen(delim);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Replace */
|
/* Replace */
|
||||||
|
@ -894,7 +894,7 @@ get_s_arg(Cmd *c, char *s)
|
||||||
if (gflags.s_cont)
|
if (gflags.s_cont)
|
||||||
return p;
|
return p;
|
||||||
|
|
||||||
s = p + 1;
|
s = p + runelen(delim);
|
||||||
|
|
||||||
/* Flags */
|
/* Flags */
|
||||||
p = semicolon_arg(s = chomp(s));
|
p = semicolon_arg(s = chomp(s));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user