Skip to content

Commit aad4806

Browse files
authored
bpo-45666: fixes warning with swprintf and %s (GH-29307)
1 parent aae18a1 commit aad4806

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix warning of ``swprintf`` and ``%s`` usage in ``_testembed.c``

Programs/_testembed.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ static int check_use_frozen_modules(const char *rawval)
17331733
if (rawval == NULL) {
17341734
wcscpy(optval, L"frozen_modules");
17351735
}
1736-
else if (swprintf(optval, 100, L"frozen_modules=%s", rawval) < 0) {
1736+
else if (swprintf(optval, 100, L"frozen_modules=%S", rawval) < 0) {
17371737
error("rawval is too long");
17381738
return -1;
17391739
}

0 commit comments

Comments
 (0)