mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
More sprintf -> PyOS_snprintf.
This commit is contained in:
parent
b38784e4a0
commit
22a51efc1c
2 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue