summaryrefslogtreecommitdiff
path: root/Python/dynload_aix.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/dynload_aix.c')
-rw-r--r--Python/dynload_aix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/dynload_aix.c b/Python/dynload_aix.c
index 4467c70414..4e39c31d43 100644
--- a/Python/dynload_aix.c
+++ b/Python/dynload_aix.c
@@ -146,7 +146,7 @@ aix_loaderror(const char *pathname)
#define LOAD_ERRTAB_LEN (sizeof(load_errtab)/sizeof(load_errtab[0]))
#define ERRBUF_APPEND(s) strncat(errbuf, s, sizeof(errbuf)-strlen(errbuf)-1)
- sprintf(errbuf, "from module %.200s ", pathname);
+ PyOS_snprintf(errbuf, sizeof(errbuf), "from module %.200s ", pathname);
if (!loadquery(L_GETMESSAGES, &message[0], sizeof(message))) {
ERRBUF_APPEND(strerror(errno));