mirror of https://github.com/mirror/busybox.git
sendmail: fix parsing of addresses in angle brackets
Pointer e needs to be wound back in order to overwrite '>' with '\0'.
Regression introduced in 20077c1429
Signed-off-by: Raffaello D. Di Napoli <rafdev@dinapo.li>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
1_29_stable
parent
7236b6d717
commit
6673497d3b
|
@ -173,7 +173,7 @@ static char *angle_address(char *str)
|
|||
char *s, *e;
|
||||
|
||||
e = trim(str);
|
||||
if (e != str && e[-1] == '>') {
|
||||
if (e != str && *--e == '>') {
|
||||
s = strrchr(str, '<');
|
||||
if (s) {
|
||||
*e = '\0';
|
||||
|
|
Loading…
Reference in New Issue