summaryrefslogtreecommitdiffstats
path: root/win/tclWinFile.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-10 13:28:39 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-10 13:28:39 (GMT)
commit44c298a5921bb4157d4c3a98896391fd11fff0d4 (patch)
treeecdadd6af6193c56759a8e9f577d346dc7f81744 /win/tclWinFile.c
parent2bbc2c472fd86cf1d6383ffeae0052a13d13e708 (diff)
parent39813465e8054beeceda75fc30d76c02609bcd83 (diff)
downloadtcl-44c298a5921bb4157d4c3a98896391fd11fff0d4.zip
tcl-44c298a5921bb4157d4c3a98896391fd11fff0d4.tar.gz
tcl-44c298a5921bb4157d4c3a98896391fd11fff0d4.tar.bz2
Merge 8.7
Diffstat (limited to 'win/tclWinFile.c')
-rw-r--r--win/tclWinFile.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c
index e16f0d8..bc85766 100644
--- a/win/tclWinFile.c
+++ b/win/tclWinFile.c
@@ -1235,7 +1235,7 @@ WinIsReserved(
if (path[4] == '\0') {
return 4;
- } else if (path [4] == ':' && path[5] == '\0') {
+ } else if (path[4] == ':' && path[5] == '\0') {
return 4;
}
} else if ((path[2] == 'n' || path[2] == 'N') && path[3] == '\0') {
@@ -1256,7 +1256,7 @@ WinIsReserved(
if (path[4] == '\0') {
return 4;
- } else if (path [4] == ':' && path[5] == '\0') {
+ } else if (path[4] == ':' && path[5] == '\0') {
return 4;
}
}
@@ -3097,7 +3097,8 @@ TclNativeCreateNativeRep(
goto done;
}
MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str, -1, nativePathPtr,
- len + 1);
+ len + 2);
+ nativePathPtr[len] = 0;
/*
* If path starts with "//?/" or "\\?\" (extended path), translate any