summaryrefslogtreecommitdiffstats
path: root/Python/dynload_win.c
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2001-11-28 11:47:00 (GMT)
committerMarc-André Lemburg <mal@egenix.com>2001-11-28 11:47:00 (GMT)
commitd4c0a9c59b399bfa0d36030663f78aa18a68e051 (patch)
tree86bc79d1907b7ca06135eaf0921dbfe11d8451ab /Python/dynload_win.c
parent5107b4cf5fa4d748bab4022531e6c5741f31e196 (diff)
downloadcpython-d4c0a9c59b399bfa0d36030663f78aa18a68e051.zip
cpython-d4c0a9c59b399bfa0d36030663f78aa18a68e051.tar.gz
cpython-d4c0a9c59b399bfa0d36030663f78aa18a68e051.tar.bz2
Fixes for possible buffer overflows in sprintf() usages.
Diffstat (limited to 'Python/dynload_win.c')
-rw-r--r--Python/dynload_win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/dynload_win.c b/Python/dynload_win.c
index a5a65cf..155a9d6 100644
--- a/Python/dynload_win.c
+++ b/Python/dynload_win.c
@@ -232,7 +232,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
if (import_python &&
strcasecmp(buffer,import_python)) {
sprintf(buffer,
- "Module use of %s conflicts "
+ "Module use of %.150s conflicts "
"with this version of Python.",
import_python);
PyErr_SetString(PyExc_ImportError,buffer);