Modified: trunk/dports/devel/boost-jam/Portfile (38785 => 38786)
--- trunk/dports/devel/boost-jam/Portfile 2008-07-31 09:10:05 UTC (rev 38785)
+++ trunk/dports/devel/boost-jam/Portfile 2008-07-31 09:23:00 UTC (rev 38786)
@@ -21,6 +21,7 @@
sha1 e2dd6ef9c56b18c7be7669aba374bcd24745ae95
platforms darwin
+patchfiles patch-strings.c
post-patch {
reinplace "s|/usr/share/boost-build|${prefix}/share/boost-build|" \
${worksrcpath}/jambase.c
Added: trunk/dports/devel/boost-jam/files/patch-strings.c (0 => 38786)
--- trunk/dports/devel/boost-jam/files/patch-strings.c (rev 0)
+++ trunk/dports/devel/boost-jam/files/patch-strings.c 2008-07-31 09:23:00 UTC (rev 38786)
@@ -0,0 +1,11 @@
+--- strings.c.orig 2008-07-31 02:16:29.000000000 -0700
++++ strings.c 2008-07-31 02:16:47.000000000 -0700
+@@ -65,7 +65,7 @@
+ if ( self->value == self->opt )
+ {
+ self->value = (char*)BJAM_MALLOC_ATOMIC( capacity + JAM_STRING_MAGIC_SIZE );
+- self->value[0] = 0;
++ memset( self->value, '\0', capacity + JAM_STRING_MAGIC_SIZE );
+ strncat( self->value, self->opt, sizeof(self->opt) );
+ assert( strlen( self->value ) <= self->capacity ); /* This is a regression test */
+ }