diff options
| author | Mark Rowe <mark@vector35.com> | 2025-12-19 11:12:20 -0800 |
|---|---|---|
| committer | Mark Rowe <mark@vector35.com> | 2025-12-20 21:34:49 -0800 |
| commit | ed0f3b1b8593f6b76fbb64c53a0885073c1c1979 (patch) | |
| tree | 5d22d77ccea8bffc0619a32ed886d79d14daccf1 /arch/mips/arch_mips.cpp | |
| parent | ba13f6ec7d0ce9a18a03a1c895fb72d18e03014a (diff) | |
Fix many of the warnings that show up when compiling with GCC 15.2
Diffstat (limited to 'arch/mips/arch_mips.cpp')
| -rw-r--r-- | arch/mips/arch_mips.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/arch_mips.cpp b/arch/mips/arch_mips.cpp index 0853f9fb..83d7a98d 100644 --- a/arch/mips/arch_mips.cpp +++ b/arch/mips/arch_mips.cpp @@ -811,6 +811,7 @@ public: if (operation_name == NULL) return false; strncpy(operation, operation_name, sizeof(operation)); + operation[sizeof(operation) - 1] = '\0'; if (instr.operands[0].operandClass == V_DEST) { @@ -3574,7 +3575,7 @@ public: break; default: result[i].type = UnhandledRelocation; - LogWarn("Unsupported relocation type: %llu (%s) @0x%llX", result[i].nativeType, + LogWarn("Unsupported relocation type: %" PRIu64 " (%s) @0x%" PRIx64, result[i].nativeType, GetRelocationString((ElfMipsRelocationType)result[i].nativeType), result[i].address); } } |
