diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mail/util.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/mail/util.c b/usr.bin/mail/util.c index df2d840..d8778eb 100644 --- a/usr.bin/mail/util.c +++ b/usr.bin/mail/util.c @@ -496,10 +496,11 @@ skin(name) *cp2++ = ' '; } *cp2++ = c; - if (c == ',' && *cp == ' ' && !gotlt) { + if (c == ',' && !gotlt && + (*cp == ' ' || *cp == '"' || *cp == '<')) { *cp2++ = ' '; - while (*++cp == ' ') - ; + while (*cp == ' ') + cp++; lastsp = 0; bufend = cp2; } |