A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-August/016934.html below:

snprintf finds its way into socketmodule.c

[Python-Dev] CVS build breakage: snprintf finds its way into socketmodule.cMartin v. Loewis martin@loewis.home.cs.tu-berlin.de
Sun, 12 Aug 2001 11:30:06 +0200
> 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




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4