mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
UI: Fix incorrect parameter
This param is the buffer size, including null terminator
This commit is contained in:
parent
3f9ca9644a
commit
f077004523
|
@ -2027,7 +2027,7 @@ bool GetFileSafeName(const char *name, std::string &file)
|
|||
return false;
|
||||
|
||||
file.resize(len);
|
||||
os_wcs_to_utf8(wfile.c_str(), wfile.size(), &file[0], len);
|
||||
os_wcs_to_utf8(wfile.c_str(), wfile.size(), &file[0], len + 1);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue