summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2001-11-28 21:35:49 (GMT)
committerBarry Warsaw <barry@python.org>2001-11-28 21:35:49 (GMT)
commit857bf52d56e1508be783d7f7e11a9d6783aadb20 (patch)
tree3ea3cc0d2f0993aba074fa43c2083ceee8a2b273 /Python
parent5947af5ac38b29baa7886c340fd804eee463bddc (diff)
downloadcpython-857bf52d56e1508be783d7f7e11a9d6783aadb20.zip
cpython-857bf52d56e1508be783d7f7e11a9d6783aadb20.tar.gz
cpython-857bf52d56e1508be783d7f7e11a9d6783aadb20.tar.bz2
aix_loaderror(): Conversion of sprintf() to PyOS_snprintf() for buffer
overrun avoidance.
Diffstat (limited to 'Python')
-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 4467c70..4e39c31 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));