summaryrefslogtreecommitdiffstats
path: root/Python/dynload_hpux.c
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2015-05-23 21:13:41 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2015-05-23 21:13:41 (GMT)
commitadc2fb8a6a8d98f32eea2d1022f14cadfdf915e3 (patch)
tree50c0518a48deac1bde97566f4420064b951e1c94 /Python/dynload_hpux.c
parentc7792160ddf8eea5f2a14cf0d957ac9a89615adb (diff)
downloadcpython-adc2fb8a6a8d98f32eea2d1022f14cadfdf915e3.zip
cpython-adc2fb8a6a8d98f32eea2d1022f14cadfdf915e3.tar.gz
cpython-adc2fb8a6a8d98f32eea2d1022f14cadfdf915e3.tar.bz2
Issue #24268: Fix import naming when loading extension modules. Patch by Petr Viktorin.
Diffstat (limited to 'Python/dynload_hpux.c')
-rw-r--r--Python/dynload_hpux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/dynload_hpux.c b/Python/dynload_hpux.c
index e28ae7c..4967afc 100644
--- a/Python/dynload_hpux.c
+++ b/Python/dynload_hpux.c
@@ -8,9 +8,9 @@
#include "importdl.h"
#if defined(__hp9000s300)
-#define FUNCNAME_PATTERN "_%20s_%.200s"
+#define FUNCNAME_PATTERN "_%.20s_%.200s"
#else
-#define FUNCNAME_PATTERN "%20s_%.200s"
+#define FUNCNAME_PATTERN "%.20s_%.200s"
#endif
const char *_PyImport_DynLoadFiletab[] = {SHLIB_EXT, NULL};