summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorChrisDill <[email protected]>2018-09-27 15:54:02 +0100
committerChrisDill <[email protected]>2018-09-27 15:54:02 +0100
commit73701c12b224b8d0461d50bdd5e3b98f7aaa2297 (patch)
tree74b35d743821ce193f14690cd961ff50d6f12555 /src/core.c
parent1836e02c1ef9909d25bbb89b9d9fdd6ec934aada (diff)
parent29eddb9ff3fda090ed416a2736a6d2db4cca77e9 (diff)
downloadraylib-73701c12b224b8d0461d50bdd5e3b98f7aaa2297.tar.gz
raylib-73701c12b224b8d0461d50bdd5e3b98f7aaa2297.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index e785e735..5b9db9fa 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1424,8 +1424,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';