diff options
author | nijtmans <nijtmans> | 2010-11-17 10:37:45 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-11-17 10:37:45 (GMT) |
commit | 87808d4f02e46dccd7c59cddd4d48eaf7a4af3d6 (patch) | |
tree | 20b56bd8409bb766851a7acd8191b366f9f561fd /win | |
parent | 5ef365fdab367ccef3891c8f167b938c0216e7c3 (diff) | |
download | tk-87808d4f02e46dccd7c59cddd4d48eaf7a4af3d6.zip tk-87808d4f02e46dccd7c59cddd4d48eaf7a4af3d6.tar.gz tk-87808d4f02e46dccd7c59cddd4d48eaf7a4af3d6.tar.bz2 |
Bring compilation under mingw-w64 a bit closer to reality (but don't break mingw32 build!)
Diffstat (limited to 'win')
-rw-r--r-- | win/winMain.c | 6 |
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; |