From bed9717b2435347599bf1b6a535f0adc020ad8aa Mon Sep 17 00:00:00 2001 From: alcexhim Date: Thu, 4 Feb 2016 13:28:46 -0500 Subject: [PATCH] Add leading zeroes for hexadecimal number --- .../DataFormats/Executable/Apple/MachO/MachODataFormat.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CSharp/Plugins/UniversalEditor.Plugins.Executable/DataFormats/Executable/Apple/MachO/MachODataFormat.cs b/CSharp/Plugins/UniversalEditor.Plugins.Executable/DataFormats/Executable/Apple/MachO/MachODataFormat.cs index ca81edc7..73341343 100644 --- a/CSharp/Plugins/UniversalEditor.Plugins.Executable/DataFormats/Executable/Apple/MachO/MachODataFormat.cs +++ b/CSharp/Plugins/UniversalEditor.Plugins.Executable/DataFormats/Executable/Apple/MachO/MachODataFormat.cs @@ -139,7 +139,7 @@ namespace UniversalEditor.DataFormats.Executable.Apple.MachO } default: { - throw new InvalidDataFormatException("The executable format 0x" + ((uint)magic).ToString("X") + " is not supported"); + throw new InvalidDataFormatException("The executable format 0x" + ((uint)magic).ToString("X").PadLeft(8, '0') + " is not supported"); } } }