From aad48062ef8f983fbb95f9dc0c3c3cef9c89df02 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Sun, 31 Oct 2021 05:13:54 +0300 Subject: bpo-45666: fixes warning with `swprintf` and `%s` (GH-29307) --- Programs/_testembed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Programs/_testembed.c') 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; } -- cgit v1.2.1