summaryrefslogtreecommitdiffstats
path: root/Programs
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2021-10-31 02:13:54 (GMT)
committerGitHub <noreply@github.com>2021-10-31 02:13:54 (GMT)
commitaad48062ef8f983fbb95f9dc0c3c3cef9c89df02 (patch)
treeaf3e12ffdd00c993bf47c2ec66f333107b8abf10 /Programs
parentaae18a17401dc36917c0f64f971d60ab1a5b477e (diff)
downloadcpython-aad48062ef8f983fbb95f9dc0c3c3cef9c89df02.zip
cpython-aad48062ef8f983fbb95f9dc0c3c3cef9c89df02.tar.gz
cpython-aad48062ef8f983fbb95f9dc0c3c3cef9c89df02.tar.bz2
bpo-45666: fixes warning with `swprintf` and `%s` (GH-29307)
Diffstat (limited to 'Programs')
-rw-r--r--Programs/_testembed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Programs/_testembed.c b/Programs/_testembed.c
index 6fe18d9..1ed3bd0 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;
}