Skip to content

Commit 1742488

Browse files
Merge pull request #12 from clayne/1692031797-openal-dir-array-bounds
OpenAL-Windows: Fix obvious array sizing issue (cherry picked from commit 99312cb)
1 parent 05983dc commit 1742488

File tree

1 file changed

+1
-1
lines changed
  • src/3rd party/openal/OpenAL-Windows/Router

1 file changed

+1
-1
lines changed

src/3rd party/openal/OpenAL-Windows/Router/alc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ ALvoid BuildDeviceSpecifierList()
335335
// Directory[2] is the current app directory
336336
// Directory[3] is the system directory
337337
//
338-
TCHAR dir[3][MAX_PATH + 1];
338+
TCHAR dir[4][MAX_PATH + 1];
339339
int numDirs = 0;
340340
DWORD dirSize = 0;
341341
int i;

0 commit comments

Comments
 (0)