1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/audio/cantus/files/patch-src_configfile.c
Beech Rintoul 4c6beb9718 - Fix build with gcc-4.2
Approved by:	Dmytro Dyomin <old@old.com.ua> (maintainer),
		portmgr (linimon)
2007-10-04 06:44:03 +00:00

12 lines
392 B
C

--- src/configfile.c.orig 2003-05-17 04:46:45.000000000 -0800
+++ src/configfile.c 2007-10-03 14:15:05.000000000 -0800
@@ -269,7 +269,7 @@
&& strcmp(option, option_src) == 0 )
{
free(data);
- (gchar *)fileitem->data = malloc(2048);
+ fileitem->data = malloc(2048);
data = (gchar *)fileitem->data;
snprintf(data, 2047, "%s = \"%s\"", option, value);
success = TRUE;