diff options
| author | raysan5 <[email protected]> | 2020-05-14 17:37:54 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-05-14 17:37:54 +0200 |
| commit | 7b001164ef2cd3b3bb481394f194baa574963b13 (patch) | |
| tree | 0285bade065d73265996680b476a2d710ed4d495 | |
| parent | 64d44d131d272b7f18b3d7e3b433a5a97bceb6d3 (diff) | |
| download | raylib-7b001164ef2cd3b3bb481394f194baa574963b13.tar.gz raylib-7b001164ef2cd3b3bb481394f194baa574963b13.zip | |
Review formatting GetPRevDirectoryPath()
| -rw-r--r-- | src/core.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2125,8 +2125,9 @@ const char *GetPrevDirectoryPath(const char *dirPath) { if ((dirPath[i] == '\\') || (dirPath[i] == '/')) { - if ((i == 2) && (dirPath[1] ==':') // Check for root: "C:\" - || i == 0) i++; // Check for root: "/" + // Check for root: "C:\" or "/" + if (((i == 2) && (dirPath[1] ==':')) || (i == 0)) i++; + strncpy(prevDirPath, dirPath, i); break; } |
