Bump size of sprintf buffer. Suggested by Alex Coventry.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 12 Aug 2001 09:28:40 +0000 (09:28 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 12 Aug 2001 09:28:40 +0000 (09:28 +0000)
Modules/socketmodule.c

index f4c5726440a05cd188a1c3086310d95ef260d0eb..16b81ac9a75d10499f3cf1259274cf016d5ced94 100644 (file)
@@ -2344,7 +2344,7 @@ PySocket_getaddrinfo(PyObject *self, PyObject *args)
 {
        struct addrinfo hints, *res0, *res;
        PyObject *pobj = (PyObject *)NULL;
-       char pbuf[10];
+       char pbuf[30];
        char *hptr, *pptr;
        int family, socktype, protocol, flags;
        int error;