Date: Tue, 28 Mar 2006 21:39:14 -0500 From: Mike Packard <mike@packardshome.net> To: ports@FreeBSD.org Cc: mike@packardshome.net Subject: FreeBSD Port: ample-0.5.7 Message-ID: <4429F352.1000506@packardshome.net>
next in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4429F352.1000506>