PNG image size optimization

This commit is contained in:
Ray
2018-09-25 12:53:31 +02:00
parent d1e5b4b546
commit abfbc42df7
75 changed files with 1 additions and 2 deletions

View File

@@ -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';