diff options
author | Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com> | 2022-04-29 16:48:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-29 16:48:08 +0300 |
commit | 0d9f5b2faafecf26c50647753ca2c56296b9da35 (patch) | |
tree | d7376d9b2f304d0ec26ac632506bcb2ea10fc400 | |
parent | 36fb1201ed848ab7e2df82be8fa0623aea8ed5bb (diff) | |
parent | b2619259bbe136d103fb8bfbf7018451d1496978 (diff) |
Merge pull request #51 from DrCrinkle/DrCrinkle-patch-1
Expand buffer size to avoid buffer overflow
-rw-r--r-- | Source/Graphics/textures.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Graphics/textures.cpp b/Source/Graphics/textures.cpp index 5377aef9..1dc6703e 100644 --- a/Source/Graphics/textures.cpp +++ b/Source/Graphics/textures.cpp @@ -615,7 +615,7 @@ void Textures::setFilters(GLenum min, GLenum mag) { void GetCompletePath(std::string *path_utf8_ptr) { std::string &path_utf8 = *path_utf8_ptr; - const int buf_size = 2048; + const int buf_size = 4096; #ifdef _WIN32 WCHAR path_utf16[buf_size]; if(!MultiByteToWideChar(CP_UTF8, 0, path_utf8.c_str(), -1, path_utf16, buf_size)){ |