mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
bpo-45666: fixes warning with swprintf and %s (GH-29307)
This commit is contained in:
parent
aae18a1740
commit
aad48062ef
2 changed files with 2 additions and 1 deletions
|
|
@ -0,0 +1 @@
|
|||
Fix warning of ``swprintf`` and ``%s`` usage in ``_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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue