From: Thomas Wouters Date: Tue, 24 Jul 2001 11:03:34 +0000 (+0000) Subject: Use HAVE_SNPRINTF, not HAVE_SPRINTF, for checking the availability of X-Git-Tag: v2.2a3~975 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7aeb6ef941bca055027173fac8c9c9015f977c4a;p=thirdparty%2FPython%2Fcpython.git Use HAVE_SNPRINTF, not HAVE_SPRINTF, for checking the availability of snprintf. --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 863a4070c44b..d33e1902c491 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);