Issue #24268: Fixes generation of init import name on Windows.

This commit is contained in:
Steve Dower 2015-05-23 08:59:25 -07:00
parent 6baa0f9805
commit 7689154f58
1 changed files with 1 additions and 1 deletions

View 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;