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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Python/dynload_dl.c b/Python/dynload_dl.c
index 3b445ce..45dcff7 100644
--- a/Python/dynload_dl.c
+++ b/Python/dynload_dl.c
@@ -46,8 +46,11 @@ const struct filedescr _PyImport_DynLoadFiletab[] = {
};
-dl_funcptr _PyImport_GetDynLoadFunc(const char *name, const char *funcname,
+dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
const char *pathname, FILE *fp)
{
+ char funcname[258];
+
+ sprintf(funcname, "init%.200s", shortname);
return dl_loadmod(Py_GetProgramName(), pathname, funcname);
}