summaryrefslogtreecommitdiffstats
path: root/src/audio/oal
diff options
context:
space:
mode:
authorFilip Gawin <filip.gawin@zoho.com>2020-07-26 00:11:13 +0200
committerFilip Gawin <filip.gawin@zoho.com>2020-07-26 00:11:13 +0200
commit98ec7bdaf9047a16a27048202bcebf3fc1ef97d2 (patch)
tree09c2861d9179fb8df15b693e9635dec821bf6515 /src/audio/oal
parentfix windows build, don't use crossplatform (diff)
downloadre3-98ec7bdaf9047a16a27048202bcebf3fc1ef97d2.tar
re3-98ec7bdaf9047a16a27048202bcebf3fc1ef97d2.tar.gz
re3-98ec7bdaf9047a16a27048202bcebf3fc1ef97d2.tar.bz2
re3-98ec7bdaf9047a16a27048202bcebf3fc1ef97d2.tar.lz
re3-98ec7bdaf9047a16a27048202bcebf3fc1ef97d2.tar.xz
re3-98ec7bdaf9047a16a27048202bcebf3fc1ef97d2.tar.zst
re3-98ec7bdaf9047a16a27048202bcebf3fc1ef97d2.zip
Diffstat (limited to '')
-rw-r--r--src/audio/oal/stream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/oal/stream.cpp b/src/audio/oal/stream.cpp
index 5639bd12..1ffe941e 100644
--- a/src/audio/oal/stream.cpp
+++ b/src/audio/oal/stream.cpp
@@ -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);