diff options
author | Taylor Asplund <62564740+DrCrinkle@users.noreply.github.com> | 2022-04-29 02:35:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-29 02:35:32 +0300 |
commit | b2619259bbe136d103fb8bfbf7018451d1496978 (patch) | |
tree | f852e0563ac8e837bbfd84b3e172534f8436803d /Source | |
parent | f8b1f1db48d8e43153f6e0ace97d470bc9fbf141 (diff) |
Expand buffer size to avoid buffer overflow
Diffstat (limited to 'Source')
-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)){ |