authorgravatar for sahnvour@gmail.comSahnvour <sahnvour@gmail.com> 2018-09-08 18:43:18+02:00
committergravatar for sahnvour@gmail.comSahnvour <sahnvour@gmail.com> 2018-09-08 18:43:18+02:00
logd80a5c9a79908a211258da6deba1e5a8a81098dd
tree4e2f226492becd3515f84367e415715c40d4d25b
parent200589868992e4d482c646ad8d60a738fefe6302

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) {...@@ -489,7 +489,7 @@ static Buf os_path_resolve_windows(Buf **paths_ptr, size_t paths_len) {
489 }489 }
490490
491 // determine which disk designator we will result with, if any491 // 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
493 Slice<uint8_t> result_disk_designator = str("");493 Slice<uint8_t> result_disk_designator = str("");
494 WindowsPathKind have_drive_kind = WindowsPathKindNone;494 WindowsPathKind have_drive_kind = WindowsPathKindNone;
495 bool have_abs_path = false;495 bool have_abs_path = false;