Mercurial > cpython-lru_cache-weakref
diff Python/traceback.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 | 2c0a9a5086e1 |
| children | 409311c78383 2288c724fe2b |
line wrap: on
line diff
--- a/Python/traceback.c Wed Nov 28 20:37:25 2001 +0000 +++ b/Python/traceback.c Wed Nov 28 20:42:20 2001 +0000 @@ -195,7 +195,7 @@ } } } - 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;
