[svn:parrot] r43110 - trunk/config/gen/platform/generic

darbelo at svn.parrot.org darbelo at svn.parrot.org
Wed Dec 16 16:45:46 UTC 2009


Author: darbelo
Date: Wed Dec 16 16:45:45 2009
New Revision: 43110
URL: https://trac.parrot.org/parrot/changeset/43110

Log:
Correct the allocation size an type for **argv. 
mem_allocate_n_typed already multiplies by the size and adds the extra * for us.
This should fix the c++ build as well.

Modified:
   trunk/config/gen/platform/generic/exec.c

Modified: trunk/config/gen/platform/generic/exec.c
==============================================================================
--- trunk/config/gen/platform/generic/exec.c	Wed Dec 16 16:28:48 2009	(r43109)
+++ trunk/config/gen/platform/generic/exec.c	Wed Dec 16 16:45:45 2009	(r43110)
@@ -106,7 +106,7 @@
         int status, i;
         STRING *s;
         char   *cmd;
-        char  **argv = mem_allocate_n_typed((len+1)*sizeof (char *), char**);
+        char  **argv = mem_allocate_n_typed((len+1), char*);
 
         for (i = 0; i < len; ++i) {
             s = VTABLE_get_string_keyed_int(interp, cmdargs, i);


More information about the parrot-commits mailing list