diff options
author | fvogel <fvogelnew1@free.fr> | 2023-01-12 00:31:57 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2023-01-12 00:31:57 (GMT) |
commit | 2d4a3f8ce9a84fd47a0b8586f5b2f62c282a3c95 (patch) | |
tree | b01d07a4ec694026a9fea402ccfa6fa95a3e152a | |
parent | 91c03f8f7b13c7f0c997749c6808cd01db9807a3 (diff) | |
download | tk-2d4a3f8ce9a84fd47a0b8586f5b2f62c282a3c95.zip tk-2d4a3f8ce9a84fd47a0b8586f5b2f62c282a3c95.tar.gz tk-2d4a3f8ce9a84fd47a0b8586f5b2f62c282a3c95.tar.bz2 |
Fix mistake.
-rw-r--r-- | macosx/tkMacOSXSend.c | 4 | ||||
-rw-r--r-- | unix/tkUnixSend.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/macosx/tkMacOSXSend.c b/macosx/tkMacOSXSend.c index ee5d97f..72c4bcf 100644 --- a/macosx/tkMacOSXSend.c +++ b/macosx/tkMacOSXSend.c @@ -263,11 +263,11 @@ Tk_SetAppName( Tcl_DStringAppend(&dString, name, -1); Tcl_DStringAppend(&dString, " #", 2); offset = Tcl_DStringLength(&dString); - Tcl_DStringSetLength(&dString, offset + 10); + Tcl_DStringSetLength(&dString, offset + TCL_INTEGER_SPACE); actualName = Tcl_DStringValue(&dString); } suffix++; - snprintf(Tcl_DStringValue(&dString) + offset, sizeof(Tcl_DStringValue(&dString)) - offset, "%d", suffix); + snprintf(Tcl_DStringValue(&dString) + offset, TCL_INTEGER_SPACE, "%d", suffix); i = 0; } else { i++; diff --git a/unix/tkUnixSend.c b/unix/tkUnixSend.c index bd33576..72b2b1e 100644 --- a/unix/tkUnixSend.c +++ b/unix/tkUnixSend.c @@ -875,7 +875,7 @@ Tk_SetAppName( 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); } w = RegFindName(regPtr, actualName); if (w == None) { |