]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36020: Remove snprintf macro in pyerrors.h (GH-20889)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 15 Jun 2020 20:20:10 +0000 (13:20 -0700)
committerGitHub <noreply@github.com>
Mon, 15 Jun 2020 20:20:10 +0000 (13:20 -0700)
commitb498c7f1b3890e43ea2e7d1570f8403707ea4cc6
tree25c15e5106769850ee4037aa00805671cb95a322
parent9a0624a3d9feb0c7664ace7a894a04e4af547661
bpo-36020: Remove snprintf macro in pyerrors.h (GH-20889)

On Windows, GH-include "pyerrors.h" no longer defines "snprintf" and
"vsnprintf" macros.

PyOS_snprintf() and PyOS_vsnprintf() should be used to get portable
behavior.

Replace snprintf() calls with PyOS_snprintf() and replace vsnprintf()
calls with PyOS_vsnprintf().
(cherry picked from commit e822e37946f27c09953bb5733acf3b07c2db690f)

Co-authored-by: Victor Stinner <vstinner@python.org>
Include/pyerrors.h
Misc/NEWS.d/next/C API/2020-06-15-16-46-01.bpo-36020.djI6jw.rst [new file with mode: 0644]
Modules/_ctypes/callbacks.c
Modules/socketmodule.c
Parser/tokenizer.c
Python/mysnprintf.c