authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-09-08 16:26:46-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2018-09-08 16:26:46-04:00
log859b0aee1e2de4b85ba88a2df75ee54952fb9642
tree4e2f226492becd3515f84367e415715c40d4d25b
parent200589868992e4d482c646ad8d60a738fefe6302
parentd80a5c9a79908a211258da6deba1e5a8a81098dd
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Merge pull request #1488 from Sahnvour/windows-resolve-path

Fixes a path corruption when compiling on windows.

1 files changed, 1 insertions(+), 1 deletions(-)

src/os.cpp+1-1
......@@ -489,7 +489,7 @@ static Buf os_path_resolve_windows(Buf **paths_ptr, size_t paths_len) {
489489 }
490490
491491 // determine which disk designator we will result with, if any
492 char result_drive_buf[2] = {'_', ':'};
492 char result_drive_buf[3] = {'_', ':', '\0'}; // 0 needed for strlen later
493493 Slice<uint8_t> result_disk_designator = str("");
494494 WindowsPathKind have_drive_kind = WindowsPathKindNone;
495495 bool have_abs_path = false;