summaryrefslogtreecommitdiff
path: root/arch/mips/arch_mips.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/arch_mips.cpp')
-rw-r--r--arch/mips/arch_mips.cpp3
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);
}
}