Fix Windows build break

Commit d879fc7f6b changed the type of `newpath` and updated all uses
in common code.  A Windows-only block was skipped.  Update that now.

Fixes: d879fc7f6b ("Convert file selection to use array<char, N>, not char[N]")
This commit is contained in:
Kp 2020-01-19 00:33:47 +00:00
parent 19c5f4064e
commit 4b48e0cd14

View file

@ -1781,7 +1781,7 @@ static window_event_result select_file_handler(listbox *menu,const d_event &even
}};
rval = newmenu_do( NULL, "Enter drive letter", m, unused_newmenu_subfunction, unused_newmenu_userdata );
text[1] = '\0';
snprintf(newpath, sizeof(char)*PATH_MAX, "%s:%s", text, sep);
snprintf(newpath.data(), newpath.size(), "%s:%s", text, sep);
if (!rval && text[0])
{
select_file_recursive(b->title, newpath, b->ext_range, b->select_dir, b->when_selected, b->userdata);