Author: jwilcox
Date: 2005-04-09 14:48:44 -0400 (Sat, 09 Apr 2005)
New Revision: 42737

Modified:
   trunk/mcs/tools/mkbundle/ChangeLog
   trunk/mcs/tools/mkbundle/template.c
Log:
2004-04-09  James Willcox  <[EMAIL PROTECTED]>
                                                                                
                                
        * template.c: allocate the correct amount of memory for newargs



Modified: trunk/mcs/tools/mkbundle/ChangeLog
===================================================================
--- trunk/mcs/tools/mkbundle/ChangeLog  2005-04-09 16:32:24 UTC (rev 42736)
+++ trunk/mcs/tools/mkbundle/ChangeLog  2005-04-09 18:48:44 UTC (rev 42737)
@@ -1,3 +1,7 @@
+2004-04-09  James Willcox  <[EMAIL PROTECTED]>
+
+       * template.c: allocate the correct amount of memory for newargs
+
 2005-04-08  Miguel de Icaza  <[EMAIL PROTECTED]>
 
        * mkbundle.cs: Add support for bundling also a machine.config

Modified: trunk/mcs/tools/mkbundle/template.c
===================================================================
--- trunk/mcs/tools/mkbundle/template.c 2005-04-09 16:32:24 UTC (rev 42736)
+++ trunk/mcs/tools/mkbundle/template.c 2005-04-09 18:48:44 UTC (rev 42737)
@@ -4,7 +4,7 @@
 
 int main (int argc, char* argv[])
 {
-       char **newargs = (char **) malloc (sizeof (char *) * argc + 2);
+       char **newargs = (char **) malloc (sizeof (char *) * (argc + 2));
        int i;
 
        newargs [0] = argv [0];

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to