[863] in testers
RT 7.0D: /usr/athena/top: patch
daemon@ATHENA.MIT.EDU (daemon@ATHENA.MIT.EDU)
Thu May 24 14:12:57 1990
Date: Thu, 24 May 90 14:11:19 -0400
To: testers@MIT.EDU
From: Richard Basch <probe@MIT.EDU>
The following fixes "top" on the RT...
(In the meantime, I have to back out this change from the source tree,
since apparently, I can't get away with calling it a new release bug --
I was hoping I could call it that since this happened all the time in
the new release, making "top" unusable, and messing up the tty modes in
the process, whereas, it happened less than 1% of the time in the old
release, and it isn't even clear that the old problem is caused by
this). I guess it will just have to wait until 7.1 or later, depending
on auditing, since no more old bugs are being fixed in this release,
unless there is a priority item on this, and I am not about to flag this
as a priority item.
-Richard
*** /tmp/,RCSt1017934 Thu May 24 14:07:27 1990
--- kernel.c Thu May 24 13:56:48 1990
***************
*** 336,341 ****
--- 336,343 ----
#if 1
if (nbad) goto bad;
#endif
+ if (cp >= limit)
+ cp = (char *)limit - 1;
*cp = 0;
while (*--cp == ' ')
*cp = 0;