mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-22 10:49:05 +02:00
Avoid an unlikely buffer overflow.
This commit is contained in:
1 parent
1b1a8cef02
commit
093255a895
1 file changed
+1
-1
+1
-1
@@ -346,7 +346,7 @@ void GetSysDirectories(std::string &memstickpath, std::string &flash0path) {
|
||||
char memstickpath_buf[_MAX_PATH];
|
||||
char flash0path_buf[_MAX_PATH];
|
||||
|
||||
GetModuleFileName(NULL, path_buffer, sizeof(path_buffer));
|
||||
GetModuleFileName(NULL, path_buffer, ARRAY_SIZE(path_buffer));
|
||||
|
||||
std::string path = ConvertWStringToUTF8(path_buffer);
|
||||
|
||||
|
||||
Reference in new issue
Block a user