diff options
author | Marc-André Lemburg <mal@egenix.com> | 2001-11-28 11:47:00 +0000 |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2001-11-28 11:47:00 +0000 |
commit | 11df42bde07c01b01c0abf8e2a5248e53d74613e (patch) | |
tree | 2c2bc10bc3b26d5e94388e37571cb99002f8979c /Python/dynload_os2.c | |
parent | a0b999dff248b8f49f851dca18fba8e5c06306a6 (diff) | |
download | cpython-11df42bde07c01b01c0abf8e2a5248e53d74613e.tar.gz |
Fixes for possible buffer overflows in sprintf() usages.
Diffstat (limited to 'Python/dynload_os2.c')
-rw-r--r-- | Python/dynload_os2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/dynload_os2.c b/Python/dynload_os2.c index 24ad74ef75..a3eb46835f 100644 --- a/Python/dynload_os2.c +++ b/Python/dynload_os2.c @@ -32,7 +32,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname, if (rc != NO_ERROR) { char errBuf[256]; sprintf(errBuf, - "DLL load failed, rc = %d: %s", + "DLL load failed, rc = %d: %.200s", rc, failreason); PyErr_SetString(PyExc_ImportError, errBuf); return NULL; |