summaryrefslogtreecommitdiffstats
path: root/Python/dynload_next.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/dynload_next.c')
-rw-r--r--Python/dynload_next.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Python/dynload_next.c b/Python/dynload_next.c
index bcb9e4b..5088b05 100644
--- a/Python/dynload_next.c
+++ b/Python/dynload_next.c
@@ -68,10 +68,13 @@ const struct filedescr _PyImport_DynLoadFiletab[] = {
{0, 0}
};
-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)
{
dl_funcptr p = NULL;
+ char funcname[258];
+
+ sprintf(funcname, "_init%.200s", shortname);
#ifdef USE_RLD
{