mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Issue #24268: Fix import naming when loading extension modules. Patch by Petr Viktorin.
This commit is contained in:
parent
c7792160dd
commit
adc2fb8a6a
3 changed files with 4 additions and 4 deletions
|
@ -40,7 +40,7 @@ dl_funcptr _PyImport_FindSharedFuncptr(const char *prefix,
|
|||
const char *errString;
|
||||
char errBuf[512];
|
||||
|
||||
PyOS_snprintf(funcname, sizeof(funcname), "_%20s_%.200s", prefix, shortname);
|
||||
PyOS_snprintf(funcname, sizeof(funcname), "_%.20s_%.200s", prefix, shortname);
|
||||
|
||||
#ifdef USE_DYLD_GLOBAL_NAMESPACE
|
||||
if (NSIsSymbolNameDefined(funcname)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue