summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-10 12:31:37 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-10 12:31:37 (GMT)
commit45c9e44c82a3494ca972276c1454a9bda8e0900e (patch)
tree19cad5e4c895e3f95f2d48368d0f64eb2177ace9
parentc69d9fda477d73e88273b55ef9e129a7e0ee8690 (diff)
downloadtcl-45c9e44c82a3494ca972276c1454a9bda8e0900e.zip
tcl-45c9e44c82a3494ca972276c1454a9bda8e0900e.tar.gz
tcl-45c9e44c82a3494ca972276c1454a9bda8e0900e.tar.bz2
Tweak: account for terminating '\0'
-rw-r--r--win/tclWinFile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c
index 2fa2258..2967cce 100644
--- a/win/tclWinFile.c
+++ b/win/tclWinFile.c
@@ -3100,7 +3100,7 @@ TclNativeCreateNativeRep(
goto done;
}
MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str, -1, nativePathPtr,
- len + 1);
+ len + 2);
nativePathPtr[len] = 0;
/*