Liste des Groupes | Revenir à co vms |
On 6/23/2025 8:37 PM, Lawrence D'Oliveiro wrote:Thanks for chasing that down.On Mon, 23 Jun 2025 20:17:57 -0400, Arne Vajhøj wrote:Unfortunately that means that the entire fallback algorithm
in tds_vasprintf (write to null device to find output size,
allocate buffer of correct size and then write to buffer)
is broken.
This one looks pretty simple and depends only on vsnprintf, which hasWhat a dumb way to do it. Using the null device means making OS I/O callsFallback algorithms are often primitive.
-- needless overhead just to find out how long a string -- which is being
put together entirely in userland -- needs to be.
But if you have a simple better way of achieving it then please send
the code to Craig so he can send it upstream.
Les messages affichés proviennent d'usenet.