* template.c: allocate the correct amount of memory for newargs
svn path=/trunk/mcs/; revision=42737
+2004-04-09 James Willcox <james@ximian.com>
+
+ * template.c: allocate the correct amount of memory for newargs
+
2005-04-08 Miguel de Icaza <miguel@novell.com>
* mkbundle.cs: Add support for bundling also a machine.config
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];