summaryrefslogtreecommitdiffstats
path: root/Python/dynload_dl.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/dynload_dl.c')
-rw-r--r--Python/dynload_dl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/dynload_dl.c b/Python/dynload_dl.c
index 4675a67..2606e1e 100644
--- a/Python/dynload_dl.c
+++ b/Python/dynload_dl.c
@@ -21,6 +21,6 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
{
char funcname[258];
- PyOS_snprintf(funcname, sizeof(funcname), "init%.200s", shortname);
+ PyOS_snprintf(funcname, sizeof(funcname), "PyInit_%.200s", shortname);
return dl_loadmod(Py_GetProgramName(), pathname, funcname);
}