diff options
Diffstat (limited to 'Python/dynload_mac.c')
-rw-r--r-- | Python/dynload_mac.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/dynload_mac.c b/Python/dynload_mac.c index 9161995..58c57d5 100644 --- a/Python/dynload_mac.c +++ b/Python/dynload_mac.c @@ -59,10 +59,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) { dl_funcptr p; + char funcname[258]; /* ** Dynamic loading of CFM shared libraries on the Mac. The @@ -121,6 +122,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *name, const char *funcname, return NULL; } /* Locate the address of the correct init function */ + sprintf(funcname, "init%.200s", shortname); err = FindSymbol(connID, Pstring(funcname), &symAddr, &class); if ( err ) { sprintf(buf, "%s: %.200s", |