From 8c11b287ff10862d74cd80f33715e44c4429b617 Mon Sep 17 00:00:00 2001 From: Christoph Baumann Date: Thu, 22 May 2025 22:50:17 +0200 Subject: [PATCH] fix strcat --- fusee/program/source/fusee_emummc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fusee/program/source/fusee_emummc.cpp b/fusee/program/source/fusee_emummc.cpp index 3da268a8d..1089a273b 100644 --- a/fusee/program/source/fusee_emummc.cpp +++ b/fusee/program/source/fusee_emummc.cpp @@ -160,13 +160,13 @@ namespace ams::nxboot { std::memcpy(path + std::strlen(path), emummc_cfg.file_cfg.path.str, sizeof(emummc_cfg.file_cfg.path.str)); - std::strcat(path, "/eMMC"); + strcat(path, "/eMMC"); auto len = std::strlen(path); /* Open boot0 file */ fs::FileHandle boot0_file; - std::strcat(path, "/boot0"); + strcat(path, "/boot0"); if(R_FAILED((result = fs::OpenFile(std::addressof(boot0_file), path, fs::OpenMode_Read)))) { ShowFatalError("Failed to open emummc boot0 file: 0x%08" PRIx32 " %s!\n", result.GetValue(), path); } @@ -186,7 +186,7 @@ namespace ams::nxboot { } /* Open userdata */ - std::strcpy(path + len, "/"); + std::memcpy(path + len, "/", 2); /* Create partition */ /* TODO: construct boot0 storage from path instead */