From 9dd080561fe4813ff5d16420bb188046939185e1 Mon Sep 17 00:00:00 2001 From: nijtmans Date: Wed, 17 Nov 2010 10:37:45 +0000 Subject: Bring compilation under mingw-w64 a bit closer to reality (but don't break mingw32 build!) FossilOrigin-Name: 519cd9d7cd48e00c633c2501e3cf99d154ef7ccb --- win/winMain.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/win/winMain.c b/win/winMain.c index 1be6561..4f1b6a6 100644 --- a/win/winMain.c +++ b/win/winMain.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: winMain.c,v 1.35 2010/11/16 14:05:36 nijtmans Exp $ + * RCS: @(#) $Id: winMain.c,v 1.36 2010/11/17 10:37:45 nijtmans Exp $ */ #ifdef TCL_BROKEN_MAINARGS @@ -385,9 +385,9 @@ setargv( } } argSpace = (char *) ckalloc( - (unsigned) (size * sizeof(char *) + (strlen(cmdLine)) + 1)); + (unsigned) (size * sizeof(char *) + strlen(cmdLine) + 1)); argv = (char **) argSpace; - argSpace += size; + argSpace += size * sizeof(char *); size--; p = cmdLine; -- cgit v0.12