diff --git a/desktop_version/src/FileSystemUtils.cpp b/desktop_version/src/FileSystemUtils.cpp index 3709a7bb..6f71f13d 100644 --- a/desktop_version/src/FileSystemUtils.cpp +++ b/desktop_version/src/FileSystemUtils.cpp @@ -50,7 +50,7 @@ int FILESYSTEM_init(char *argvZero, char* baseDir, char *assetsPath) strcpy(output, baseDir); /* We later append to this path and assume it ends in a slash */ - if (strcmp(std::string(1, output[strlen(output) - 1]).c_str(), pathSep) != 0) + if (SDL_strcmp(output + SDL_strlen(output) - SDL_strlen(pathSep), pathSep) != 0) { strcat(output, pathSep); }