--- Modules/socketmodule.c.orig 2007-02-27 12:22:04.000000000 +0100 +++ Modules/socketmodule.c 2007-02-27 12:22:12.000000000 +0100 @@ -3046,7 +3046,7 @@ #endif /* Guarantee NUL-termination for PyString_FromString() below */ - memset((void *) &ip[0], '\0', sizeof(ip) + 1); + memset((void *) &ip[0], '\0', sizeof(ip)); if (!PyArg_ParseTuple(args, "is#:inet_ntop", &af, &packed, &len)) { return NULL;