From 255d4c646c0d7aa6b049052fef47fa083b1b1506 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Sun, 29 Jan 2006 19:34:42 +0000 Subject: [PATCH] remove trailing newlines from components to fix bug with spaces at the end of Subject/References in replies --- ChangeLog | 5 +++++ uip/replsbr.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7f5be11..33be307 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-01-29 Oliver Kiddle + + * bug 4360: uip/replsbr.c: remove trailing newlines from components + to fix bug with spaces at the end of Subject/References in replies + 2006-01-18 Oliver Kiddle * configure.in: use AS_HELP_STRING for formatting help messages diff --git a/uip/replsbr.c b/uip/replsbr.c index 244fdc9..b8e8e92 100644 --- a/uip/replsbr.c +++ b/uip/replsbr.c @@ -162,7 +162,9 @@ replout (FILE *inb, char *msg, char *drft, struct msgs *mp, int outputlinelen, if (!strcasecmp(name, cptr->c_name)) { char_read += msg_count; if (! cptr->c_text) { - cptr->c_text = tmpbuf; + i = strlen(cptr->c_text = tmpbuf) - 1; + if (tmpbuf[i] == '\n') + tmpbuf[i] = '\0'; *--savecomp = cptr; tmpbuf = *nxtbuf++; } else { -- 1.7.10.4