diff options
| author | ChrisDill <[email protected]> | 2018-09-27 15:54:02 +0100 |
|---|---|---|
| committer | ChrisDill <[email protected]> | 2018-09-27 15:54:02 +0100 |
| commit | 73701c12b224b8d0461d50bdd5e3b98f7aaa2297 (patch) | |
| tree | 74b35d743821ce193f14690cd961ff50d6f12555 /src/core.c | |
| parent | 1836e02c1ef9909d25bbb89b9d9fdd6ec934aada (diff) | |
| parent | 29eddb9ff3fda090ed416a2736a6d2db4cca77e9 (diff) | |
| download | raylib-73701c12b224b8d0461d50bdd5e3b98f7aaa2297.tar.gz raylib-73701c12b224b8d0461d50bdd5e3b98f7aaa2297.zip | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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'; |
