diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-11-28 20:42:20 +0000 |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-11-28 20:42:20 +0000 |
commit | 350e448f76ffc612cb80cf82aed1616288d25cc3 (patch) | |
tree | 10c042251e2cfa7709ede71e9f227d909a9d6029 /Python/pythonrun.c | |
parent | e5c065977a2737987590159464bb10b30a87064d (diff) | |
download | cpython-350e448f76ffc612cb80cf82aed1616288d25cc3.tar.gz |
Use PyOS_snprintf instead of sprintf.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index f6217c3da6..628058b8b8 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -933,7 +933,7 @@ void PyErr_Display(PyObject *exception, PyObject *value, PyObject *tb) else PyFile_WriteString(filename, f); PyFile_WriteString("\", line ", f); - sprintf(buf, "%d", lineno); + PyOS_snprintf(buf, sizeof(buf), "%d", lineno); PyFile_WriteString(buf, f); PyFile_WriteString("\n", f); if (text != NULL) |