mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Use HAVE_SNPRINTF, not HAVE_SPRINTF, for checking the availability of
snprintf.
This commit is contained in:
parent
3db5b8cc76
commit
7aeb6ef941
1 changed files with 1 additions and 1 deletions
|
|
@ -2420,7 +2420,7 @@ PySocket_getnameinfo(PyObject *self, PyObject *args)
|
|||
n = PyArg_ParseTuple(sa, "si|ii", &hostp, &port, &flowinfo, scope_id);
|
||||
if (n == 0)
|
||||
goto fail;
|
||||
#ifdef HAVE_SPRINTF
|
||||
#ifdef HAVE_SNPRINTF
|
||||
snprintf(pbuf, sizeof(pbuf), "%d", port);
|
||||
#else
|
||||
sprintf(pbuf, "%d", port);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue