mirror of
https://github.com/halpz/re3.git
synced 2025-06-28 22:06:28 +00:00
Provide more memory for casepath's arg
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user