From c58e51fa96a92cf7c09095cfbcf5f660da3578fd Mon Sep 17 00:00:00 2001 From: kai Date: Tue, 19 Feb 2019 15:14:53 +0800 Subject: [PATCH] Fixed compiling error of cli on Windows --- src/cli/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/path.c b/src/cli/path.c index 460cef07..cbba0a7c 100644 --- a/src/cli/path.c +++ b/src/cli/path.c @@ -75,7 +75,7 @@ static size_t absolutePrefixLength(const char* path) // Drive letter. if (isDriveLetter(path[0]) && path[1] == ':') { - if (isSeparator(path->chars[2])) + if (isSeparator(path[2])) { // Fully absolute path. return 3;