aboutsummaryrefslogtreecommitdiff
path: root/Programs
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2021-10-31 05:13:54 +0300
committerGitHub <noreply@github.com>2021-10-31 10:13:54 +0800
commitaad48062ef8f983fbb95f9dc0c3c3cef9c89df02 (patch)
treeaf3e12ffdd00c993bf47c2ec66f333107b8abf10 /Programs
parentaae18a17401dc36917c0f64f971d60ab1a5b477e (diff)
downloadcpython3-aad48062ef8f983fbb95f9dc0c3c3cef9c89df02.tar.gz
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 6fe18d93a7..1ed3bd00ed 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;
}