mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-06 10:39:58 +00:00
Provide more memory for casepath's arg
This commit is contained in:
parent
40c09d28f7
commit
98ec7bdaf9
4 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue