summaryrefslogtreecommitdiff
path: root/Python/thread.c
diff options
context:
space:
mode:
authorLars Gust?bel <lars@gustaebel.de>2015-07-02 19:41:03 +0200
committerLars Gust?bel <lars@gustaebel.de>2015-07-02 19:41:03 +0200
commita0333aa657baeb3738a8c2fe211168cb1dbab8ac (patch)
tree9d48b355036c218e706d4e0c698fc3586673bd5b /Python/thread.c
parente8c3a8aa583475fa33dd8b74959193217cb56933 (diff)
parentc6050850b5f399a24702795515d02fdf06b01b4f (diff)
downloadcpython-a0333aa657baeb3738a8c2fe211168cb1dbab8ac.tar.gz
Merge with 3.4: Issue #24514: tarfile now tolerates number fields consisting of only whitespace.
Diffstat (limited to 'Python/thread.c')
-rw-r--r--Python/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/thread.c b/Python/thread.c
index 4e695aeca2..44c071eafe 100644
--- a/Python/thread.c
+++ b/Python/thread.c
@@ -431,7 +431,7 @@ PyThread_GetInfo(void)
&& defined(_CS_GNU_LIBPTHREAD_VERSION))
value = NULL;
len = confstr(_CS_GNU_LIBPTHREAD_VERSION, buffer, sizeof(buffer));
- if (1 < len && len < sizeof(buffer)) {
+ if (1 < len && (size_t)len < sizeof(buffer)) {
value = PyUnicode_DecodeFSDefaultAndSize(buffer, len-1);
if (value == NULL)
PyErr_Clear();