[Python-checkins] cpython (3.4): Issue #21781, _ssl: Fix asn1obj2py() on Windows 64-bit, "s#" format requires

victor.stinner python-checkins at python.org
Mon Jul 7 21:53:27 CEST 2014


http://hg.python.org/cpython/rev/34a0d98c51ea
changeset:   91594:34a0d98c51ea
branch:      3.4
parent:      91592:bb3f1afcd082
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Mon Jul 07 21:52:29 2014 +0200
summary:
  Issue #21781, _ssl: Fix asn1obj2py() on Windows 64-bit, "s#" format requires
size to be a Py_ssize_t, not an int. _ssl.c is now "Py_ssize_t clean".

files:
  Modules/_ssl.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/_ssl.c b/Modules/_ssl.c
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -3416,7 +3416,7 @@
     int nid;
     const char *ln, *sn;
     char buf[100];
-    int buflen;
+    Py_ssize_t buflen;
 
     nid = OBJ_obj2nid(obj);
     if (nid == NID_undef) {

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list