[Python-Dev] CVS build breakage: snprintf finds its way into socketmodule.c

Alex Coventry alex_c@MIT.EDU
24 Jul 2001 15:04:26 -0400


> Following itojun's proposal, I have now added an autoconf test for
> snprintf, and use sprintf if it is not available.

In PySocket_getaddrinfo, would it make sense to increase the allocation
of pbuf from 10 characters to, say, 30 characters, in case 

sprintf(pbuf, "%ld", PyInt_AsLong(pobj));

gets run on a 64-bit machine?

Alex.