From 28dd8ff59473143a62f6e4a91c0fe9412a602f2d Mon Sep 17 00:00:00 2001 From: OmniBlade Date: Tue, 25 Jun 2024 10:30:22 +0100 Subject: [PATCH] Fix startup on linux. Mix file caching fix but more better. --- common/file.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/file.cpp b/common/file.cpp index 5a639b85..d2e727d3 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -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); }