mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-01 15:49:51 +08:00
UI: Fix incorrect parameter
This param is the buffer size, including null terminator
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user