mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
More sprintf -> PyOS_snprintf.
This commit is contained in:
parent
179c48c60e
commit
75cdad5584
5 changed files with 14 additions and 9 deletions
|
@ -1519,7 +1519,8 @@ al_GetParams(PyObject *self, PyObject *args)
|
|||
for (i = 0; i < npvs; i++) {
|
||||
if (pvs[i].sizeOut < 0) {
|
||||
char buf[32];
|
||||
sprintf(buf, "problem with param %d", i);
|
||||
PyOS_snprintf(buf, sizeof(buf),
|
||||
"problem with param %d", i);
|
||||
PyErr_SetString(ErrorObject, buf);
|
||||
goto error;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue