Date: Mon, 6 Nov 1995 23:10:44 +0300 (MSK) From: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (aka Andrey A. Chernov, Black Mage) <ache@astral.msk.su> To: "Jordan K. Hubbard" <jkh@time.cdrom.com> Cc: hackers@freefall.freebsd.org Subject: Re: Ack! Help, Andrey! I'm having troubles in libdialog! Message-ID: <Jq4lcdm8z3@ache.dialup.demos.ru> In-Reply-To: <610.815682540@time.cdrom.com>; from "Jordan K. Hubbard" at Mon, 06 Nov 1995 10:29:00 -0800 References: <610.815682540@time.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <610.815682540@time.cdrom.com> Jordan K. Hubbard writes: >Sorry, but it really is easiest to see the problem with sysinstall! >The stand-alone utilities don't represent it because they exit >immediately after the dialog function returns, making stack corruption >unnoticed. Well, it was easy, take about 1min to debug :-) Here quick and durty fix, I assume you can do more correct variant based on your sysinstall ideas. (result[] holds all package names separated by newlines). *** index.c.bak Mon Nov 6 15:49:24 1995 --- index.c Mon Nov 6 23:06:05 1995 *************** *** 438,444 **** int curr, max; PkgNodePtr sp, kp; char **nitems; ! char result[127]; Boolean hasPackages; hasPackages = FALSE; --- 438,444 ---- int curr, max; PkgNodePtr sp, kp; char **nitems; ! char result[127000]; Boolean hasPackages; hasPackages = FALSE; -- Andrey A. Chernov : And I rest so composedly, /Now, in my bed, ache@astral.msk.su : That any beholder /Might fancy me dead - http://dt.demos.su/~ache : Might start at beholding me, /Thinking me dead. RELCOM Team,FreeBSD Team : E.A.Poe From "For Annie" 1849
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Jq4lcdm8z3>