summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2001-07-24 11:03:34 (GMT)
committerThomas Wouters <thomas@python.org>2001-07-24 11:03:34 (GMT)
commit7aeb6ef941bca055027173fac8c9c9015f977c4a (patch)
treec803cbecb0b7c6b06bc026084867c2c37c8eaf5c /Modules
parent3db5b8cc76d055c6576aaff51722fc4d64d64388 (diff)
downloadcpython-7aeb6ef941bca055027173fac8c9c9015f977c4a.zip
cpython-7aeb6ef941bca055027173fac8c9c9015f977c4a.tar.gz
cpython-7aeb6ef941bca055027173fac8c9c9015f977c4a.tar.bz2
Use HAVE_SNPRINTF, not HAVE_SPRINTF, for checking the availability of
snprintf.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 863a407..d33e190 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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);