diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/mactoolboxglue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/mactoolboxglue.c b/Python/mactoolboxglue.c index ea21b4e..2852fde 100644 --- a/Python/mactoolboxglue.c +++ b/Python/mactoolboxglue.c @@ -91,7 +91,7 @@ char *PyMac_StrError(int err) 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; } |