From owner-freebsd-questions@FreeBSD.ORG Mon Oct 27 19:55:00 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A3FC1065670 for ; Mon, 27 Oct 2008 19:55:00 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 32FC18FC0A for ; Mon, 27 Oct 2008 19:55:00 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KuYB0-00064X-Hq for freebsd-questions@freebsd.org; Mon, 27 Oct 2008 19:54:58 +0000 Received: from 91-64-170-235-dynip.superkabel.de ([91.64.170.235]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Oct 2008 19:54:58 +0000 Received: from ino-news by 91-64-170-235-dynip.superkabel.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Oct 2008 19:54:58 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: clemens fischer Date: Mon, 27 Oct 2008 20:53:46 +0100 Lines: 26 Message-ID: X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 91-64-170-235-dynip.superkabel.de X-Archive: encrypt=none User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/8.0-CURRENT (i386)) Sender: news Subject: reviving games/freebsd-games X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 19:55:00 -0000 Some of the programs in games/freebsd-games, notably hack and larn, have the following problem: Given the declarations: char *scrollname[] = { char *potionname[] = { "\0enchant armor", "\0sleep", "\0enchant weapon", "\0healing", ... ... "\0 " "\0 " }; }; (in larn/data.c) the code continues to flag the availability of some scroll or potion by writing into the first byte of the strings in these arrays: for (i=0; i