Skip to content

Commit

Permalink
Fix startup on linux.
Browse files Browse the repository at this point in the history
Mix file caching fix but more better.
  • Loading branch information
OmniBlade committed Jun 25, 2024
1 parent faba183 commit 69c2455
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions common/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ static void Resolve_File_Single(char* fname)
}

size_t name_len = strlen(fname);
size_t full_len = strlen(ffblk->GetFullName());

if (ffblk->FindFirst(fname) && name_len == full_len) {
if (ffblk->FindFirst(fname) && name_len == strlen(ffblk->GetFullName())) {
strncpy(fname, ffblk->GetFullName(), name_len + 1);
}

Expand Down

0 comments on commit 69c2455

Please sign in to comment.