On 06/05/19 03:38, Eli Zaretskii wrote: >> From: Keith Marshall <keith****@users*****> >> Date: Sun, 5 May 2019 23:28:57 +0100 >> >> FWIW, I can reproduce your results, but I don't see the same effect, >> if I substitute a (properly adjusted) call to printf(), in place of >> snprintf(). We may need to tweak <stdio.h>, to use similar call >> redirection for snprintf(), as is currently used for printf(), >> fprintf(), and sprintf(). > > Thanks. If you want me to try some patch, I can. I opened a ticket: https://osdn.net/projects/mingw/ticket/39224 To that, I've attached two patches: the first (smaller of the two) adds in-line implementations for snprintf() and vsnprintf(); the larger one works around the conflicts that the in-line declarations create within the corresponding external implementations. These seem to DTRT for me, but if you would like to test further, then I'd appreciate feed-back. -- Regards, Keith. Public key available from keys.gnupg.net Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: OpenPGP digital signature URL: <https://lists.osdn.me/mailman/archives/mingw-users/attachments/20190506/c9ba1872/attachment.sig>