From owner-freebsd-hackers Mon Nov 6 12:13:32 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id MAA11454 for hackers-outgoing; Mon, 6 Nov 1995 12:13:32 -0800 Received: from sequent.kiae.su (sequent.kiae.su [144.206.136.6]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id MAA11448 for ; Mon, 6 Nov 1995 12:13:28 -0800 Received: by sequent.kiae.su id AA26516 (5.65.kiae-2 ); Mon, 6 Nov 1995 23:12:07 +0300 Received: by sequent.KIAE.su (UUMAIL/2.0); Mon, 6 Nov 95 23:12:06 +0300 Received: (from ache@localhost) by ache.dialup.demos.ru (8.6.12/8.6.12) id XAA00987; Mon, 6 Nov 1995 23:10:44 +0300 To: "Jordan K. Hubbard" Cc: hackers@freefall.freebsd.org References: <610.815682540@time.cdrom.com> In-Reply-To: <610.815682540@time.cdrom.com>; from "Jordan K. Hubbard" at Mon, 06 Nov 1995 10:29:00 -0800 Message-Id: Organization: Olahm Ha-Yetzirah Date: Mon, 6 Nov 1995 23:10:44 +0300 (MSK) X-Mailer: Mail/@ [v2.40 FreeBSD] From: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (aka Andrey A. Chernov, Black Mage) X-Class: Fast Subject: Re: Ack! Help, Andrey! I'm having troubles in libdialog! Lines: 36 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Length: 1213 Sender: owner-hackers@FreeBSD.org Precedence: bulk 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