aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Spörlein <uqs@FreeBSD.org>2010-06-11 11:24:23 +0000
committerUlrich Spörlein <uqs@FreeBSD.org>2010-06-11 11:24:23 +0000
commit285dab09df2e0a49f6f5ca9ec39c2e836016b6f7 (patch)
tree0fcf8b33c0857e5e3dc023cfb1ff248efaf91c1a
parent2a0266f7c7b2f408a31dafbe6e246c8e7425b1b0 (diff)
Notes
-rw-r--r--usr.bin/mail/util.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/mail/util.c b/usr.bin/mail/util.c
index e764aacd0008..af962c8ca84f 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;
}