From baaeb5af7149f9a4ced95331a6c577f6c0c96e34 Mon Sep 17 00:00:00 2001 From: ladderbreaker Date: Fri, 23 Mar 2007 20:23:31 +0000 Subject: issue141: reviewer Waylonis git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@132 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/mac/macho_id.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/common/mac') diff --git a/src/common/mac/macho_id.cc b/src/common/mac/macho_id.cc index 9605166e..e3f90e0c 100644 --- a/src/common/mac/macho_id.cc +++ b/src/common/mac/macho_id.cc @@ -191,7 +191,10 @@ bool MachoID::IDCommand(int cpu_type, unsigned char identifier[16]) { identifier[9] = (dylib_cmd.dylib.compatibility_version >> 16) & 0xFF; identifier[10] = (dylib_cmd.dylib.compatibility_version >> 8) & 0xFF; identifier[11] = dylib_cmd.dylib.compatibility_version & 0xFF; - identifier[12] = identifier[13] = identifier[14] = identifier[15] = 0; + identifier[12] = (cpu_type >> 24) & 0xFF; + identifier[13] = (cpu_type >> 16) & 0xFF; + identifier[14] = (cpu_type >> 8) & 0xFF; + identifier[15] = cpu_type & 0xFF; return true; } -- cgit v1.2.1