Commit Graph
1 Commits
Author SHA1 Message Date
kai 0c6b2ab63a fix: correct invalid pointer dereference in absolutePrefixLength for Windows paths
The function `absolutePrefixLength` in `src/cli/path.c` was incorrectly accessing `path->chars[2]` instead of `path[2]` when checking for a separator after a drive letter, causing a compilation error on Windows due to the struct pointer syntax being used on a plain `const char*` parameter. Changed the member access to direct array indexing to match the parameter type and fix the Windows build.
2019-02-19 07:14:53 +00:00