bpo-45666: fixes warning with swprintf and %s (GH-29307)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user