commit | adc2fb8a6a8d98f32eea2d1022f14cadfdf915e3 | [log] [tgz] |
---|---|---|
author | Steve Dower <steve.dower@microsoft.com> | Sat May 23 14:13:41 2015 -0700 |
committer | Steve Dower <steve.dower@microsoft.com> | Sat May 23 14:13:41 2015 -0700 |
tree | 50c0518a48deac1bde97566f4420064b951e1c94 | |
parent | c7792160ddf8eea5f2a14cf0d957ac9a89615adb [diff] [blame] |
Issue #24268: Fix import naming when loading extension modules. Patch by Petr Viktorin.
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 @@ { 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); }