From owner-freebsd-questions@FreeBSD.ORG Tue Oct 28 10:57:17 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 7B0F11065673; Tue, 28 Oct 2008 10:57:17 +0000 (UTC) (envelope-from jurjenm@stack.nl) Received: from mx1.stack.nl (meestal-mk5.stack.nl [IPv6:2001:610:1108:5010::149]) by mx1.freebsd.org (Postfix) with ESMTP id 999438FC22; Tue, 28 Oct 2008 10:57:16 +0000 (UTC) (envelope-from jurjenm@stack.nl) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mx1.stack.nl (Postfix) with ESMTP id 489C33F7FF; Tue, 28 Oct 2008 11:57:15 +0100 (CET) Received: by snail.stack.nl (Postfix, from userid 1909) id 3C26122892; Tue, 28 Oct 2008 11:57:15 +0100 (CET) Date: Tue, 28 Oct 2008 11:57:15 +0100 From: Jurjen Middendorp To: clemens fischer Message-ID: <20081028105715.GA33501@stack.nl> Mail-Followup-To: Jurjen Middendorp , clemens fischer , Jeremy Chadwick , freebsd-questions@FreeBSD.org References: <20081027200749.GB29814@icarus.home.lan> <20081027202219.GE2435@spotteswoode.de.eu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081027202219.GE2435@spotteswoode.de.eu.org> Organization: Dept. of Truly Sickening Special-Case Kludges User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Jeremy Chadwick , freebsd-questions@FreeBSD.org Subject: Re: 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: Tue, 28 Oct 2008 10:57:17 -0000 On Mon, Oct 27, 2008 at 09:22:19PM +0100, clemens fischer wrote: >> Jeremy Chadwick: > >> I think the bottom line here is that until someone steps up and >> actually volunteers to fix the code, it will remain broken. (I don't >> normally tote this attitude, but in this case it's applicable: this is >> a volunteer project! :-) ) > >That's why I want to try my skills on it. I found the emails you cited, >but they didn't help much. > >Gdb(1) is no mystery to me, and it told me where larn crashes. Doing >"scrollname[i][0]=' '" with "char *scrollname[] = {"\0something",...}" >shouldn't cause a SIGSEGV as far as I know. > >regards, clemens If you do char *p = "something", you can't write to that string (it's a pointer into some stringtable: easy way to look at it :). You have to use char p[] = "something", then it's an array with enough storage to write to :) maybe try something like char scrollname[NUMSCROLLS][]; ? greetings, Jurjen.