Commit 70a98024 authored by Thomas Wouters's avatar Thomas Wouters

Use HAVE_SNPRINTF, not HAVE_SPRINTF, for checking the availability of

snprintf.
parent f8d5929b
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment