FreeBSD Port: ample-0.5.7
Mike Packard
mike at packardshome.net
Wed Mar 29 02:39:15 UTC 2006
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 at packardshome.net
-------------- next part --------------
--- 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;
}
}
More information about the freebsd-ports
mailing list