summaryrefslogtreecommitdiffstats
path: root/generic/tclEnv.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-08-04 07:48:39 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-08-04 07:48:39 (GMT)
commitf4b9d9697eed263a69362a80ff78b872ad123e0c (patch)
treeebbe618f12e927b1158cf966062bcb0d7194f73b /generic/tclEnv.c
parent7fe49bb7164153f93609697d3501cf9277b87a5c (diff)
parent24ef33dc101a3e9114318b884c1e99d792f4739d (diff)
downloadtcl-dkf_documentation_figures.zip
tcl-dkf_documentation_figures.tar.gz
tcl-dkf_documentation_figures.tar.bz2
Diffstat (limited to 'generic/tclEnv.c')
-rw-r--r--generic/tclEnv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclEnv.c b/generic/tclEnv.c
index 72d6fba..b5ae6ea 100644
--- a/generic/tclEnv.c
+++ b/generic/tclEnv.c
@@ -698,6 +698,7 @@ TclFinalizeEnvironment(void)
* fork) and the Windows environment (in case the application TCL code calls
* exec, which calls the Windows CreateProcess function).
*/
+DLLIMPORT extern void __stdcall SetEnvironmentVariableA(const char*, const char *);
static void
TclCygwinPutenv(
@@ -771,9 +772,9 @@ TclCygwinPutenv(
} else {
int size;
- size = cygwin_posix_to_win32_path_list_buf_size(value);
+ size = cygwin_conv_path_list(0, value, NULL, 0);
buf = alloca(size + 1);
- cygwin_posix_to_win32_path_list(value, buf);
+ cygwin_conv_path_list(0, value, buf, size);
}
SetEnvironmentVariableA(name, buf);