aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mailutils/sendmail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mailutils/sendmail.c b/mailutils/sendmail.c
index 4ca91fad8..0170f2870 100644
--- a/mailutils/sendmail.c
+++ b/mailutils/sendmail.c
@@ -173,7 +173,7 @@ static char *angle_address(char *str)
173 char *s, *e; 173 char *s, *e;
174 174
175 e = trim(str); 175 e = trim(str);
176 if (e != str && e[-1] == '>') { 176 if (e != str && *--e == '>') {
177 s = strrchr(str, '<'); 177 s = strrchr(str, '<');
178 if (s) { 178 if (s) {
179 *e = '\0'; 179 *e = '\0';