Use HAVE_SNPRINTF, not HAVE_SPRINTF, for checking the availability of

snprintf.
This commit is contained in:
Thomas Wouters 2001-07-24 11:03:34 +00:00
parent 3db5b8cc76
commit 7aeb6ef941

View file

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