[Python-Dev] Re: Problems with socketmodule (getnameinfo & getaddrinfo)

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Mon, 25 Jun 2001 08:39:44 +0200


> To get socketmodule.c to compile, I had to make a change to line 2963 
> so that the declaration of inet_pton matched the previous declaration on
> line 220 (changing char *src to const char *src). Still have problems
> though, due to the use of snprintf in getnameinfo.c:

Ok, they are printing a single number into a 512 byte buffer; that is
safe even with sprintf only, so I have just remove the snprintf call.
Can you please try again?

Thanks for your reports,
Martin