Mercurial > cpython-lru_cache-weakref
diff Python/mactoolboxglue.c @ 21178:bc51de643b5e legacy-trunk
More sprintf -> PyOS_snprintf.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Tue, 04 Dec 2001 01:11:32 +0000 |
| parents | d54e294484b2 |
| children | 03d85d197052 |
line wrap: on
line diff
--- a/Python/mactoolboxglue.c Mon Dec 03 22:15:56 2001 +0000 +++ b/Python/mactoolboxglue.c Tue Dec 04 01:11:32 2001 +0000 @@ -91,7 +91,7 @@ HUnlock(h); ReleaseResource(h); } else { - sprintf(buf, "Mac OS error code %d", err); + PyOS_snprintf(buf, sizeof(buf), "Mac OS error code %d", err); } return buf; }
