summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/tkInt.h2
-rw-r--r--generic/tkSelect.c2
-rw-r--r--generic/ttk/ttkManager.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkInt.h b/generic/tkInt.h
index 5b777c6..75283f5 100644
--- a/generic/tkInt.h
+++ b/generic/tkInt.h
@@ -1113,7 +1113,7 @@ MODULE_SCOPE const char *const tkWebColors[20];
#endif
/*
- * Support for Clang Static Analyzer <http://clang-analyzer.llvm.org>
+ * Support for Clang Static Analyzer <https://clang-analyzer.llvm.org/>
*/
#if defined(PURIFY) && defined(__clang__)
diff --git a/generic/tkSelect.c b/generic/tkSelect.c
index a9064df..c37a320 100644
--- a/generic/tkSelect.c
+++ b/generic/tkSelect.c
@@ -1191,7 +1191,7 @@ TkSelInit(
* Using UTF8_STRING instead of the XA_UTF8_STRING macro allows us to
* support older X servers that didn't have UTF8_STRING yet. This is
* necessary on Unix systems. For more information, see:
- * http://www.cl.cam.ac.uk/~mgk25/unicode.html#x11
+ * https://www.cl.cam.ac.uk/~mgk25/unicode.html#x11
*/
#if !defined(_WIN32)
diff --git a/generic/ttk/ttkManager.c b/generic/ttk/ttkManager.c
index 0d41d21..c3257c3 100644
--- a/generic/ttk/ttkManager.c
+++ b/generic/ttk/ttkManager.c
@@ -452,7 +452,7 @@ int Ttk_GetContentIndexFromObj(
/* Try interpreting as an integer first:
*/
if (TkGetIntForIndex(objPtr, mgr->nContent - 1, 1, &index) == TCL_OK) {
- if (index + 1 > mgr->nContent + 1) {
+ if (index == TCL_INDEX_NONE || index > mgr->nContent) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"Managed window index %d out of bounds", (int)index));
Tcl_SetErrorCode(interp, "TTK", "MANAGED", "INDEX", NULL);