diff options
Diffstat (limited to 'Python/traceback.c')
-rw-r--r-- | Python/traceback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/traceback.c b/Python/traceback.c index 6abde64..fee9d12 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -195,7 +195,7 @@ tb_displayline(PyObject *f, char *filename, int lineno, char *name) } } } - sprintf(linebuf, FMT, filename, lineno, name); + PyOS_snprintf(linebuf, sizeof(linebuf), FMT, filename, lineno, name); err = PyFile_WriteString(linebuf, f); if (xfp == NULL || err != 0) return err; |