Re: [Python-Dev] CVS build breakage: snprintf finds its way into socketmodule.c
24 Jul
2001
24 Jul
'01
7:04 p.m.
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.
12 Aug
12 Aug
9:30 a.m.
New subject: CVS build breakage: snprintf finds its way into socketmodule.c
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?
It isn't strictly necessary, since the port number should never be that large; it doesn't hurt to increase the size, either, so I did that. Thanks, Martin
8292
Age (days ago)
8311
Last active (days ago)
1 comments
2 participants
participants (2)
-
Alex Coventry
-
Martin v. Loewis