[98] in bug-owl
Re: owl fix for functions.c
daemon@ATHENA.MIT.EDU (James M. Kretchmar)
Tue Oct 15 16:21:05 2002
Message-Id: <200210152018.QAA08278@mission-control.mit.edu>
To: arolfe@MIT.EDU
cc: bug-ktools@MIT.EDU, bug-owl@MIT.EDU
In-Reply-To: Your message of "Mon, 14 Oct 2002 21:45:18 EDT."
<200210150145.VAA02079@metacircular-evaluator.mit.edu>
Date: Tue, 15 Oct 2002 16:18:24 -0400
From: "James M. Kretchmar" <kretch@MIT.EDU>
> in 1.2.6, lines 1332 and 1333 should be
>
> sprintf(tmpbuff, "<%s,%s,%s>\n", sub.zsub_class, sub.zsub_classinst, sub.zsub_recipient);
> strcat(buff,tmpbuff);
>
>
> The old way copied everything into tmpbuff each time. tmpbuff was fixed
> size and overflowed with many subscriptions.
Actually, the reason for the weird code was so that the subscriptions
would be printed in reverse from what the server returns. So instead
I've increased the size of tmpbuff:
tmpbuff=owl_malloc(num*500);
And left the rest the same.
> This has been tested for 5 minutes and seems ok.
Feel like trying this out? :)
kretch