summaryrefslogtreecommitdiff
path: root/Python/traceback.c
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2014-09-13 23:40:27 -0700
committerNed Deily <nad@acm.org>2014-09-13 23:40:27 -0700
commit4278e8cf357c7418651ca0e23346b2ddec74edce (patch)
treea3c23ca1ef525340d98e01bb53fc9e6785ce45ff /Python/traceback.c
parent0d48f974662035c14912d225b71b6cf93b621bb0 (diff)
parent0675102eeb39b5bf471af40e8af6729102fccc6b (diff)
downloadcpython-4278e8cf357c7418651ca0e23346b2ddec74edce.tar.gz
Issue #22168: Prevent turtle AttributeError with non-default Canvas on OS X.
Diffstat (limited to 'Python/traceback.c')
-rw-r--r--Python/traceback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/traceback.c b/Python/traceback.c
index 2ece192db9..565094b1e8 100644
--- a/Python/traceback.c
+++ b/Python/traceback.c
@@ -198,7 +198,7 @@ _Py_FindSourceFile(PyObject *filename, char* namebuf, size_t namelen, PyObject *
}
strcpy(namebuf, PyBytes_AS_STRING(path));
Py_DECREF(path);
- if (strlen(namebuf) != len)
+ if (strlen(namebuf) != (size_t)len)
continue; /* v contains '\0' */
if (len > 0 && namebuf[len-1] != SEP)
namebuf[len++] = SEP;