Provide more memory for casepath's arg

This commit is contained in:
Filip Gawin
2020-07-26 00:11:13 +02:00
parent 40c09d28f7
commit 98ec7bdaf9
4 changed files with 8 additions and 8 deletions

View File

@ -205,7 +205,7 @@ CStream::CStream(char *filename, ALuint &source, ALuint (&buffers)[NUM_STREAMBUF
#if !defined(_WIN32)
FILE *test = fopen(filename, "r");
if (!test) {
char *r = (char*)alloca(strlen(filename) + 2);
char *r = (char*)alloca(strlen(filename) + 4);
if (casepath(filename, r))
{
strcpy(m_aFilename, r);