summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-12-04 01:11:32 +0000
committerTim Peters <tim.peters@gmail.com>2001-12-04 01:11:32 +0000
commit35648d225e558a81bee34479f5c80bbe071defcf (patch)
tree2d41af624c656821c0ec8e0a1032e1662b8c697a /Python
parentb40fa862247cebf6b4637eb94a2e4b2aa74c2d7e (diff)
downloadcpython-35648d225e558a81bee34479f5c80bbe071defcf.tar.gz
More sprintf -> PyOS_snprintf.
Diffstat (limited to 'Python')
-rw-r--r--Python/mactoolboxglue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/mactoolboxglue.c b/Python/mactoolboxglue.c
index ea21b4e045..2852fde2e4 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;
}