From owner-freebsd-ports@FreeBSD.ORG Wed Mar 29 02:39:15 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A1D316A400 for ; Wed, 29 Mar 2006 02:39:15 +0000 (UTC) (envelope-from mike@packardshome.net) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.192.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09D0C43D46 for ; Wed, 29 Mar 2006 02:39:14 +0000 (GMT) (envelope-from mike@packardshome.net) Received: from packardshome.net ([69.243.52.27]) by comcast.net (rwcrmhc11) with ESMTP id <20060329023913m1100carsje>; Wed, 29 Mar 2006 02:39:14 +0000 Message-ID: <4429F352.1000506@packardshome.net> Date: Tue, 28 Mar 2006 21:39:14 -0500 From: Mike Packard User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7b) Gecko/20040429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: ports@FreeBSD.org Content-Type: multipart/mixed; boundary="------------040706050207000902050207" Cc: mike@packardshome.net Subject: FreeBSD Port: ample-0.5.7 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2006 02:39:15 -0000 This is a multi-part message in MIME format. --------------040706050207000902050207 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Dear Sirs/ Ma'am, I've been using ample now for awhile as a nice simple soln to a home networking mp3 player. Anyways, I found a bug in it and have been changing the code myself. I've sent an e-mail to the author but I think he's long since stopped work on ample. Anyways, I've attached a patch file to get past the bug. (I'm not sure but I think this is unique to freeBSD. I know this soln will not hurt in other operating systems). Mike Packard mike@packardshome.net --------------040706050207000902050207 Content-Type: text/plain; name="patch-src::configuration.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-src::configuration.c" --- src/configuration.c.orig Mon Mar 27 17:29:50 2006 +++ src/configuration.c Mon Mar 27 17:34:11 2006 @@ -435,11 +435,11 @@ strcat(tmp, line); if((tmpsize - tmpwritten) < LINELENGTH) { tmpsize += LINELENGTH; - realloc(tmp, tmpsize); + tmp = realloc(tmp, tmpsize); } } - realloc(tmp, strlen(tmp) + 1); + tmp = realloc(tmp, strlen(tmp) + 1); *((char **)delimiters[i].value) = tmp; } } --------------040706050207000902050207--