[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated

From: Ken Hornstein
Subject: [Nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated. aaf31d46368bcf63f7ae4b0019ef09d098f98491
Date: Tue, 31 Jan 2012 18:21:56 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The nmh Mail Handling System".

The branch, master has been updated
       via  aaf31d46368bcf63f7ae4b0019ef09d098f98491 (commit)
      from  3e151103c954aad7871a197b438b8d79d557e07e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------

commit aaf31d46368bcf63f7ae4b0019ef09d098f98491
Author: Ken Hornstein <address@hidden>
Date:   Tue Jan 31 13:20:40 2012 -0500

    Whoops, I need to make sure the buffer I pass to putcomp() is 

diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c
index 1446c2a..a44413c 100644
--- a/uip/mhlsbr.c
+++ b/uip/mhlsbr.c
@@ -1949,7 +1949,8 @@ filterbody (struct mcomp *c1, char *buf, int bufsz, int 
state, FILE *fp)
     holder.c_text = buf;
-    while ((cc = read(fdoutput[0], buf, bufsz)) > 0) {
+    while ((cc = read(fdoutput[0], buf, bufsz - 1)) > 0) {
+       buf[cc] = '\0';
        putcomp(c1, &holder, BODYCOMP);


Summary of changes:
 uip/mhlsbr.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

The nmh Mail Handling System

reply via email to

[Prev in Thread] Current Thread [Next in Thread]