FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-45666: fixes warning with `swprintf` and `%s` (GH-29307) · python/cpython@aad4806 · GitHub

/ cpython Public

Commit aad4806

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

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

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)

Back | FazBrowse Home | New Git URL