mirror of https://github.com/python/cpython
bpo-45666: fixes warning with `swprintf` and `%s` (GH-29307)
This commit is contained in:
parent
aae18a1740
commit
aad48062ef
|
@ -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…
Reference in New Issue