CVSROOT: /cvsroot/nmh
Module name: nmh
Branch:
Changes by: Oliver Kiddle <[EMAIL PROTECTED]> 06/01/29 19:34:44
Modified files:
. : ChangeLog
uip : replsbr.c
Log message:
remove trailing newlines from components to fix bug with spaces at the
end of
Subject/References in replies
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/ChangeLog.diff?tr1=1.230&tr2=1.231&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/replsbr.c.diff?tr1=1.8&tr2=1.9&r1=text&r2=text
Patches:
Index: nmh/ChangeLog
diff -u nmh/ChangeLog:1.230 nmh/ChangeLog:1.231
--- nmh/ChangeLog:1.230 Wed Jan 18 18:08:16 2006
+++ nmh/ChangeLog Sun Jan 29 19:34:42 2006
@@ -1,3 +1,8 @@
+2006-01-29 Oliver Kiddle <[EMAIL PROTECTED]>
+
+ * 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 <[EMAIL PROTECTED]>
* configure.in: use AS_HELP_STRING for formatting help messages
Index: nmh/uip/replsbr.c
diff -u nmh/uip/replsbr.c:1.8 nmh/uip/replsbr.c:1.9
--- nmh/uip/replsbr.c:1.8 Mon Jan 2 03:25:18 2006
+++ nmh/uip/replsbr.c Sun Jan 29 19:34:44 2006
@@ -2,7 +2,7 @@
/*
* replsbr.c -- routines to help repl along...
*
- * $Id: replsbr.c,v 1.8 2006/01/02 03:25:18 bress Exp $
+ * $Id: replsbr.c,v 1.9 2006/01/29 19:34:44 opk Exp $
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
@@ -162,7 +162,9 @@
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 {
_______________________________________________
Nmh-commits mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/nmh-commits