mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 11:06:06 -04:00
fix broken linux build
This commit is contained in:
parent
ce715a4001
commit
b54a4ea143
@ -2047,7 +2047,7 @@ ReturnCode Platform_SetDefaultCurrentDirectory(void) {
|
|||||||
|
|
||||||
/* get rid of filename at end of directory */
|
/* get rid of filename at end of directory */
|
||||||
for (i = len - 1; i >= 0; i--, len--) {
|
for (i = len - 1; i >= 0; i--, len--) {
|
||||||
if (path[i] == '\\') break;
|
if (path[i] == '/') break;
|
||||||
}
|
}
|
||||||
|
|
||||||
path[len] = '\0';
|
path[len] = '\0';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user