From ee5dd8e43a5135ab35f518f169a4a6f124af68bf Mon Sep 17 00:00:00 2001 From: fvogel Date: Sat, 21 Jan 2023 09:03:11 +0000 Subject: Fix error in tkWinSend.c (there was no impact since TK_SEND_ENABLED_ON_WINDOWS is not defined, but anyway: thanks Jan!). --- win/tkWinSend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win/tkWinSend.c b/win/tkWinSend.c index 7d63cec..799961f 100644 --- a/win/tkWinSend.c +++ b/win/tkWinSend.c @@ -681,10 +681,10 @@ RegisterInterp( Tcl_DStringAppend(&dString, name, -1); Tcl_DStringAppend(&dString, " #", 2); offset = Tcl_DStringLength(&dString); - Tcl_DStringSetLength(&dString, offset+TCL_INTEGER_SPACE); + Tcl_DStringSetLength(&dString, offset + TCL_INTEGER_SPACE); actualName = Tcl_DStringValue(&dString); } - snprintf(Tcl_DStringValue(&dString) + offset, sizeof(Tcl_DStringValue(&dString)) - offset, "%d", i); + snprintf(Tcl_DStringValue(&dString) + offset, TCL_INTEGER_SPACE, "%d", i); } hr = BuildMoniker(actualName, &pmk); -- cgit v0.12