diff Modules/socketmodule.c @ 18820:4677d2ff3150 legacy-trunk

Use HAVE_SNPRINTF, not HAVE_SPRINTF, for checking the availability of snprintf.
author Thomas Wouters <thomas@python.org>
date Tue, 24 Jul 2001 11:03:34 +0000
parents cebb4e187449
children 8c402adeeccb
line wrap: on
line diff
--- a/Modules/socketmodule.c	Tue Jul 24 06:54:01 2001 +0000
+++ b/Modules/socketmodule.c	Tue Jul 24 11:03:34 2001 +0000
@@ -2420,7 +2420,7 @@
 	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);