From owner-freebsd-hackers Tue Nov 7 02:20:18 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id CAA12497 for hackers-outgoing; Tue, 7 Nov 1995 02:20:18 -0800 Received: from time.cdrom.com (time.cdrom.com [192.216.222.226]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id CAA12492 for ; Tue, 7 Nov 1995 02:20:14 -0800 Received: from localhost (localhost [127.0.0.1]) by time.cdrom.com (8.6.12/8.6.9) with SMTP id CAA00256; Tue, 7 Nov 1995 02:19:54 -0800 To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) cc: freebsd-hackers@freebsd.org (FreeBSD hackers) Subject: Re: Ack! Help, Andrey! I'm having troubles in libdialog! In-reply-to: Your message of "Tue, 07 Nov 1995 07:50:22 +0100." <199511070650.HAA25533@uriah.heep.sax.de> Date: Tue, 07 Nov 1995 02:19:53 -0800 Message-ID: <253.815739593@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-hackers@freebsd.org Precedence: bulk > One of the rules: Avoid magic numbers... Unfortunately, in this case it's impossible since I don't know the length of the potential result string in advance. I've done the next best thing which is to add up all the package names in the longest menu and calculate what the maximum possible result string would be, making it that long. Jordan