From d80a5c9a79908a211258da6deba1e5a8a81098dd Mon Sep 17 00:00:00 2001 From: Sahnvour Date: Sat, 8 Sep 2018 18:43:18 +0200 Subject: Fixes a path corruption when compiling on windows. --- src/os.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/os.cpp') diff --git a/src/os.cpp b/src/os.cpp index 0e62d84a48..31ed703e62 100644 --- a/src/os.cpp +++ b/src/os.cpp @@ -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 result_disk_designator = str(""); WindowsPathKind have_drive_kind = WindowsPathKindNone; bool have_abs_path = false; -- cgit v1.2.3