summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2015-05-23 15:59:25 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2015-05-23 15:59:25 (GMT)
commit7689154f58c5de65881ef7531379cdf33bbbd1ff (patch)
treebc24fe4d0037d765b8c46ecd8d2530ac50134649
parent6baa0f98056cb9d48b8c497017c71482d4b208ff (diff)
downloadcpython-7689154f58c5de65881ef7531379cdf33bbbd1ff.zip
cpython-7689154f58c5de65881ef7531379cdf33bbbd1ff.tar.gz
cpython-7689154f58c5de65881ef7531379cdf33bbbd1ff.tar.bz2
Issue #24268: Fixes generation of init import name on Windows.
-rw-r--r--Python/dynload_win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/dynload_win.c b/Python/dynload_win.c
index 96f1a09..f2c796e 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;