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

Fixes a path corruption when compiling on windows.
master
Andrew Kelley 2018-09-08 16:26:46 -04:00 committed by GitHub
commit 859b0aee1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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