[14870] in Athena Bugs
Re: sgi 8.0I: from -r garbles subject lines
daemon@ATHENA.MIT.EDU (Bruce R. Lewis)
Tue Dec 10 10:43:29 1996
Date: Tue, 10 Dec 1996 15:42:54 GMT
From: "Bruce R. Lewis" <brlewis@MIT.EDU>
To: bugs@MIT.EDU
Cc: source-reviewers@MIT.EDU
In-Reply-To: "[14868] in Athena Bugs"
"from -r" prints unterminated strings for the subject line. This patch
fixes it.
Index: athena/bin/from/from.c
===================================================================
RCS file: /afs/dev/source/repository/athena/bin/from/from.c,v
retrieving revision 1.17
diff -c -r1.17 from.c
*** from.c 1996/09/19 22:37:01 1.17
--- from.c 1996/12/10 15:34:38
***************
*** 573,578 ****
--- 573,580 ----
len = 30;
buf1 = malloc(winlength-len+1); /* add 1 for the NULL terminator */
+ memset(buf1, 0, winlength-len+1);
+
if (buf1 == NULL)
{
fprintf (stderr, "from: out of memory");