[38786] trunk/dports/devel/boost-jam

toby at macports.org toby at macports.org
Thu Jul 31 02:23:01 PDT 2008


Revision: 38786
          http://trac.macosforge.org/projects/macports/changeset/38786
Author:   toby at macports.org
Date:     2008-07-31 02:23:00 -0700 (Thu, 31 Jul 2008)
Log Message:
-----------
Cooperate with less forgiving compilers. Not bumping revision as this purely a build fix.

Modified Paths:
--------------
    trunk/dports/devel/boost-jam/Portfile

Added Paths:
-----------
    trunk/dports/devel/boost-jam/files/
    trunk/dports/devel/boost-jam/files/patch-strings.c

Modified: trunk/dports/devel/boost-jam/Portfile
===================================================================
--- 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
===================================================================
--- 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 */
+     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080731/1ccd6d07/attachment.html 


More information about the macports-changes mailing list