summaryrefslogtreecommitdiffstats
path: root/win/tkWinInit.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-03-22 14:13:15 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-03-22 14:13:15 (GMT)
commit4494f123bac86f61b2f1c3c8b56949c9e0aa2e92 (patch)
treee671c4554d6ca74ed829521312197e09bf7a4586 /win/tkWinInit.c
parent63f067286fc348190bd0e780deec6c9566b2409b (diff)
downloadtk-4494f123bac86f61b2f1c3c8b56949c9e0aa2e92.zip
tk-4494f123bac86f61b2f1c3c8b56949c9e0aa2e92.tar.gz
tk-4494f123bac86f61b2f1c3c8b56949c9e0aa2e92.tar.bz2
Bugfix in tkWinClipboard: Failed to determine fname length in loop.
Diffstat (limited to 'win/tkWinInit.c')
-rw-r--r--win/tkWinInit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tkWinInit.c b/win/tkWinInit.c
index 4c18399..780888a 100644
--- a/win/tkWinInit.c
+++ b/win/tkWinInit.c
@@ -199,7 +199,7 @@ TkWin32ErrorObj(
}
#ifdef _UNICODE
- Tcl_WinTCharToUtf(lpBuffer, (int)wcslen(lpBuffer) * sizeof (WCHAR), &ds);
+ Tcl_WinTCharToUtf(lpBuffer, wcslen(lpBuffer) * sizeof (WCHAR), &ds);
errPtr = Tcl_NewStringObj(Tcl_DStringValue(&ds), Tcl_DStringLength(&ds));
Tcl_DStringFree(&ds);
#else