Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 21077:379fc66f4c96 legacy-trunk
Use PyOS_snprintf instead of sprintf.
| author | Jeremy Hylton <jeremy@alum.mit.edu> |
|---|---|
| date | Wed, 28 Nov 2001 20:42:20 +0000 |
| parents | c1ecafd15560 |
| children | 45e1177424e1 |
line wrap: on
line diff
--- a/Python/pythonrun.c Wed Nov 28 20:37:25 2001 +0000 +++ b/Python/pythonrun.c Wed Nov 28 20:42:20 2001 +0000 @@ -933,7 +933,7 @@ 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)
