aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--blaze822.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blaze822.c b/blaze822.c
index 1076c60..f403d90 100644
--- a/blaze822.c
+++ b/blaze822.c
@@ -284,7 +284,7 @@ blaze822_addr(char *s, char **dispo, char **addro)
char *z = skip_comment(s);
if (!*disp && *addr) // user@host (name)
safe_append(disp, sizeof disp, s + 1,
- *z ? z - 1 : z);
+ *z ? z-1 : (*(z-1) == ')' ? z-1 : z));
else if (*disp) { // copy comment
safe_append_space(disp, sizeof disp);
safe_append(disp, sizeof disp, s, z);