Skip to content

Commit 59927dc

Browse files
committed
OpenAL-Windows: Fix obvious array sizing issue
* This is dir[4] all throughout the rest of the file so not sure what happened here. Found with address sanitizer.
1 parent c742869 commit 59927dc

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)