From: Steve Dower Date: Sat, 23 May 2015 15:59:25 +0000 (-0700) Subject: Issue #24268: Fixes generation of init import name on Windows. X-Git-Tag: v3.5.0b1~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7689154f58c5de65881ef7531379cdf33bbbd1ff;p=thirdparty%2FPython%2Fcpython.git Issue #24268: Fixes generation of init import name on Windows. --- diff --git a/Python/dynload_win.c b/Python/dynload_win.c index 96f1a09f8a48..f2c796e94d2e 100644 --- a/Python/dynload_win.c +++ b/Python/dynload_win.c @@ -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;