zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 3568cd4b8f52164d8a519576cc9ea95bb303cd92 (tree)
parent 3af973160031fd573f46489bee519217e635839a
Author: LemonBoy <LemonBoy@users.noreply.github.com>
Date:   Wed, 27 Oct 2021 18:08:19 +0200

stage1: Fix path normalization on Windows

Backport a missing change from `path.zig`.

Fixes #9465
Diffstat:
Msrc/stage1/os.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/stage1/os.cpp b/src/stage1/os.cpp @@ -480,7 +480,7 @@ static Buf os_path_resolve_windows(Buf **paths_ptr, size_t paths_len) { // Now we know the disk designator to use, if any, and what kind it is. And our result // is big enough to append all the paths to. bool correct_disk_designator = true; - for (size_t i = 0; i < paths_len; i += 1) { + for (size_t i = first_index; i < paths_len; i += 1) { Slice<uint8_t> p = buf_to_slice(paths_ptr[i]); WindowsPath parsed = windowsParsePath(p);