summaryrefslogtreecommitdiffstats
path: root/generic/tclEnv.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-03 20:25:14 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-03 20:25:14 (GMT)
commitee3826893da771c3254ecf2aa2da59790d1d0541 (patch)
tree4dde8a27dc8ba84476dbd8eaf698329ee7ba75fe /generic/tclEnv.c
parent474d95712ea623f7cccf704be60d713aa2ebe309 (diff)
parente74974e6cddc887a442d6134824509aeeb1ce0f7 (diff)
downloadtcl-ee3826893da771c3254ecf2aa2da59790d1d0541.zip
tcl-ee3826893da771c3254ecf2aa2da59790d1d0541.tar.gz
tcl-ee3826893da771c3254ecf2aa2da59790d1d0541.tar.bz2
Merge tip-548 (since using the *WChar* functions leads to less type-casts in c++)
Als finish implementaton for MacOSX
Diffstat (limited to 'generic/tclEnv.c')
-rw-r--r--generic/tclEnv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclEnv.c b/generic/tclEnv.c
index 5e840e9..da4bfe3 100644
--- a/generic/tclEnv.c
+++ b/generic/tclEnv.c
@@ -123,7 +123,7 @@ TclSetupEnv(
char *p2;
p1 = Tcl_ExternalToUtfDString(NULL, environ[i], -1, &envString);
- p2 = strchr(p1, '=');
+ p2 = (char *)strchr(p1, '=');
if (p2 == NULL) {
/*
* This condition seem to happen occasionally under some
@@ -379,7 +379,7 @@ Tcl_PutEnv(
*/
name = Tcl_ExternalToUtfDString(NULL, assignment, -1, &nameString);
- value = strchr(name, '=');
+ value = (char *)strchr(name, '=');
if ((value != NULL) && (value != name)) {
value[0] = '\0';