More sprintf -> PyOS_snprintf.

This commit is contained in:
Tim Peters 2001-12-04 01:11:32 +00:00
parent b38784e4a0
commit 22a51efc1c
2 changed files with 4 additions and 3 deletions

View file

@ -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;
}