summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authornijtmans <nijtmans@noemail.net>2010-11-17 10:37:45 (GMT)
committernijtmans <nijtmans@noemail.net>2010-11-17 10:37:45 (GMT)
commit9dd080561fe4813ff5d16420bb188046939185e1 (patch)
tree20b56bd8409bb766851a7acd8191b366f9f561fd /win
parentcef50b428ed9bf0dcdb22dd7793cf35ceb101c63 (diff)
downloadtk-9dd080561fe4813ff5d16420bb188046939185e1.zip
tk-9dd080561fe4813ff5d16420bb188046939185e1.tar.gz
tk-9dd080561fe4813ff5d16420bb188046939185e1.tar.bz2
Bring compilation under mingw-w64 a bit closer to reality (but don't break mingw32 build!)
FossilOrigin-Name: 519cd9d7cd48e00c633c2501e3cf99d154ef7ccb
Diffstat (limited to 'win')
-rw-r--r--win/winMain.c6
1 files 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;