diff --git a/RSDKv3/fcaseopen.c b/RSDKv3/fcaseopen.c index 23fcaa69..0bdefbd8 100644 --- a/RSDKv3/fcaseopen.c +++ b/RSDKv3/fcaseopen.c @@ -30,7 +30,7 @@ THE SOFTWARE. #include #include -// r must have strlen(path) + 2 bytes +// r must have strlen(path) + 3 bytes static int casepath(char const *path, char *r) { size_t l = strlen(path); @@ -101,7 +101,7 @@ FILE *fcaseopen(char const *path, char const *mode) FILE *f = fopen(path, mode); #if !defined(_WIN32) if (!f) { - char *r = (char *)alloca(strlen(path) + 2); + char *r = (char *)alloca(strlen(path) + 3); if (casepath(path, r)) { f = fopen(r, mode); } @@ -113,7 +113,7 @@ FILE *fcaseopen(char const *path, char const *mode) void casechdir(char const *path) { #if !defined(_WIN32) - char *r = (char *)alloca(strlen(path) + 2); + char *r = (char *)alloca(strlen(path) + 3); if (casepath(path, r)) { chdir(r); } diff --git a/dependencies/android/README.md b/dependencies/android/README.md index 67d8667f..8d44f6a1 100644 --- a/dependencies/android/README.md +++ b/dependencies/android/README.md @@ -1,7 +1,7 @@ # Android ## Install dependencies -* SDL2: [Download the source code](https://github.com/libsdl-org/SDL) and unzip it in `dependencies/android/SDL`. +* SDL2: [Download the source code](https://github.com/libsdl-org/SDL/tree/SDL2) and unzip it in `dependencies/android/SDL`. * GLEW: [Download the binaries](http://glew.sourceforge.net/) and unzip it in `dependencies/android/glew`.