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 d235a84..2bec645 100644
--- a/Python/dynload_dl.c
+++ b/Python/dynload_dl.c
@@ -18,6 +18,6 @@ dl_funcptr _PyImport_FindSharedFuncptr(const char *prefix,
{
char funcname[258];
- PyOS_snprintf(funcname, sizeof(funcname), "%20s_%.200s", prefix, shortname);
+ PyOS_snprintf(funcname, sizeof(funcname), "%.20s_%.200s", prefix, shortname);
return dl_loadmod(Py_GetProgramName(), pathname, funcname);
}