diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-12-10 12:31:37 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-12-10 12:31:37 (GMT) |
commit | 45c9e44c82a3494ca972276c1454a9bda8e0900e (patch) | |
tree | 19cad5e4c895e3f95f2d48368d0f64eb2177ace9 | |
parent | c69d9fda477d73e88273b55ef9e129a7e0ee8690 (diff) | |
download | tcl-45c9e44c82a3494ca972276c1454a9bda8e0900e.zip tcl-45c9e44c82a3494ca972276c1454a9bda8e0900e.tar.gz tcl-45c9e44c82a3494ca972276c1454a9bda8e0900e.tar.bz2 |
Tweak: account for terminating '\0'
-rw-r--r-- | win/tclWinFile.c | 2 |
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; /* |