aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2018-09-25 12:53:31 +0200
committerRay <raysan5@gmail.com>2018-09-25 12:53:31 +0200
commitabfbc42df703c382a56cf1e06e4302cadbfe3395 (patch)
tree409215dcdd15b0b4fb1175aaae370ac832132bea /src
parentd1e5b4b546b0d7cf5c1740cdfcd447ddbb5cacfd (diff)
downloadraylib-abfbc42df703c382a56cf1e06e4302cadbfe3395.tar.gz
raylib-abfbc42df703c382a56cf1e06e4302cadbfe3395.zip
PNG image size optimization
Diffstat (limited to 'src')
-rw-r--r--src/core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index fc1a5a09..5f155a0a 100644
--- a/src/core.c
+++ b/src/core.c
@@ -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';