Fix incorrect format specifier to printf

Detected by code scanning
This commit is contained in:
Kovid Goyal 2020-07-07 09:14:33 +05:30
parent 907db09a58
commit 26699cd9ef
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -47,7 +47,7 @@ set_xoptions(const wchar_t *exe_dir, const char *lc_ctype) {
swprintf(buf, PATH_MAX, L"bundle_exe_dir=%ls", exe_dir);
PySys_AddXOption(buf);
if (lc_ctype) {
swprintf(buf, PATH_MAX, L"lc_ctype_before_python=%ls", lc_ctype);
swprintf(buf, PATH_MAX, L"lc_ctype_before_python=%s", lc_ctype);
PySys_AddXOption(buf);
}
}