From: Nikita Sobolev Date: Sun, 31 Oct 2021 02:13:54 +0000 (+0300) Subject: bpo-45666: fixes warning with `swprintf` and `%s` (GH-29307) X-Git-Tag: v3.11.0a2~43 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aad48062ef8f983fbb95f9dc0c3c3cef9c89df02;p=thirdparty%2FPython%2Fcpython.git bpo-45666: fixes warning with `swprintf` and `%s` (GH-29307) --- diff --git a/Misc/NEWS.d/next/Build/2021-10-29-12-54-53.bpo-45666.w2G63u.rst b/Misc/NEWS.d/next/Build/2021-10-29-12-54-53.bpo-45666.w2G63u.rst new file mode 100644 index 000000000000..8a3e6feded85 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2021-10-29-12-54-53.bpo-45666.w2G63u.rst @@ -0,0 +1 @@ +Fix warning of ``swprintf`` and ``%s`` usage in ``_testembed.c`` diff --git a/Programs/_testembed.c b/Programs/_testembed.c index 6fe18d93a73a..1ed3bd00edff 100644 --- a/Programs/_testembed.c +++ b/Programs/_testembed.c @@ -1733,7 +1733,7 @@ static int check_use_frozen_modules(const char *rawval) if (rawval == NULL) { wcscpy(optval, L"frozen_modules"); } - else if (swprintf(optval, 100, L"frozen_modules=%s", rawval) < 0) { + else if (swprintf(optval, 100, L"frozen_modules=%S", rawval) < 0) { error("rawval is too long"); return -1; }