]> granicus.if.org Git - python/commitdiff
Issue #24268: Fixes generation of init import name on Windows.
authorSteve Dower <steve.dower@microsoft.com>
Sat, 23 May 2015 15:59:25 +0000 (08:59 -0700)
committerSteve Dower <steve.dower@microsoft.com>
Sat, 23 May 2015 15:59:25 +0000 (08:59 -0700)
Python/dynload_win.c

index 96f1a09f8a485def63e0d51cac8778b80c8df44b..f2c796e94d2e61bb82794772ba3ff497c4b68023 100644 (file)
@@ -202,7 +202,7 @@ dl_funcptr _PyImport_FindSharedFuncptrWindows(const char *prefix,
     if (wpathname == NULL)
         return NULL;
 
-    PyOS_snprintf(funcname, sizeof(funcname), "%20_%.200s", prefix, shortname);
+    PyOS_snprintf(funcname, sizeof(funcname), "%.20s_%.200s", prefix, shortname);
 
     {
         HINSTANCE hDLL = NULL;