From a5c4ac4804c377759d468adfad94733d46822f36 Mon Sep 17 00:00:00 2001 From: Alex Musolino Date: Wed, 30 Jun 2021 12:22:28 +0000 Subject: [PATCH] upas/Mail: fix CC addresses in "Reply All" compose windows --- sys/src/cmd/upas/Mail/comp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/src/cmd/upas/Mail/comp.c b/sys/src/cmd/upas/Mail/comp.c index bdf8c7aab..125da475a 100644 --- a/sys/src/cmd/upas/Mail/comp.c +++ b/sys/src/cmd/upas/Mail/comp.c @@ -229,13 +229,14 @@ respondto(Biobuf *fd, char *to, Mesg *r, int all) return; } - n = 0; addrs = emalloc(64*sizeof(char*)); + n = 0; n += tokenize(to, addrs+n, 64-n); n += tokenize(rpto, addrs+n, 64-n); n += tokenize(r->to, addrs+n, 64-n); show(fd, "To", addrs, n); - n = tokenize(r->cc, addrs+n, 64-n); + n = 0; + n += tokenize(r->cc, addrs+n, 64-n); show(fd, "CC", addrs, n); free(addrs); }