mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-14 23:38:15 +00:00
PNG image size optimization
This commit is contained in:
@@ -1375,8 +1375,7 @@ const char *GetDirectoryPath(const char *fileName)
|
||||
memset(filePath, 0, 256);
|
||||
|
||||
lastSlash = strprbrk(fileName, "\\/");
|
||||
if (!lastSlash)
|
||||
return NULL;
|
||||
if (!lastSlash) return NULL;
|
||||
|
||||
strncpy(filePath, fileName, strlen(fileName) - (strlen(lastSlash) - 1));
|
||||
filePath[strlen(fileName) - strlen(lastSlash)] = '\0';
|
||||
|
Reference in New Issue
Block a user