]> granicus.if.org Git - python/commitdiff
Use HAVE_SNPRINTF, not HAVE_SPRINTF, for checking the availability of
authorThomas Wouters <thomas@python.org>
Tue, 24 Jul 2001 11:03:34 +0000 (11:03 +0000)
committerThomas Wouters <thomas@python.org>
Tue, 24 Jul 2001 11:03:34 +0000 (11:03 +0000)
snprintf.

Modules/socketmodule.c

index 863a4070c44b395eaa85c931a241e2668677c42d..d33e1902c4917e1b3f9568f2359bf8e08806e83a 100644 (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);