summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-11-28 20:42:20 +0000
committerJeremy Hylton <jeremy@alum.mit.edu>2001-11-28 20:42:20 +0000
commit350e448f76ffc612cb80cf82aed1616288d25cc3 (patch)
tree10c042251e2cfa7709ede71e9f227d909a9d6029 /Python/pythonrun.c
parente5c065977a2737987590159464bb10b30a87064d (diff)
downloadcpython-350e448f76ffc612cb80cf82aed1616288d25cc3.tar.gz
Use PyOS_snprintf instead of sprintf.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c2
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)