diff options
| author | Mike Heffner <mikeh@FreeBSD.org> | 2001-09-23 04:07:26 +0000 |
|---|---|---|
| committer | Mike Heffner <mikeh@FreeBSD.org> | 2001-09-23 04:07:26 +0000 |
| commit | 28fb5d9a37058b1d3641a064f2d05e474bb32af7 (patch) | |
| tree | 34925d9c2995282543bbf0ee1e5e1e7e88d34739 /usr.bin/mail | |
| parent | 545c943a7b9d6270bff7e4f234e3d7983fdf0549 (diff) | |
Notes
Diffstat (limited to 'usr.bin/mail')
| -rw-r--r-- | usr.bin/mail/aux.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mail/aux.c b/usr.bin/mail/aux.c index 401399ace2ef7..d8c32b3fb8a38 100644 --- a/usr.bin/mail/aux.c +++ b/usr.bin/mail/aux.c @@ -494,9 +494,9 @@ skin(name) *cp2++ = ' '; } *cp2++ = c; - if (c == ',' && !gotlt) { + if (c == ',' && *cp == ' ' && !gotlt) { *cp2++ = ' '; - for (; *cp == ' '; cp++) + while (*++cp == ' ') ; lastsp = 0; bufend = cp2; @@ -505,8 +505,8 @@ skin(name) } *cp2 = '\0'; - if ((nbuf = realloc(nbuf, strlen(nbuf) + 1)) == NULL) - err(1, "Out of memory"); + if ((cp = realloc(nbuf, strlen(nbuf) + 1)) != NULL) + nbuf = cp; return (nbuf); } |
