Ticket #51524: patch-src-snowleopard-macho2yaml.diff
File patch-src-snowleopard-macho2yaml.diff, 416 bytes (added by kenneth.f.cunningham@…, 8 years ago) |
---|
-
tools/obj2yaml/macho2yaml.cpp
old new 15 15 16 16 #include <string.h> // for memcpy 17 17 18 static size_t 19 strnlen(const char *s, size_t maxlen) 20 { 21 size_t len; 22 23 for (len = 0; len < maxlen; len++, s++) { 24 if (!*s) 25 break; 26 } 27 return (len); 28 } 29 30 18 31 using namespace llvm; 19 32 20 33 class MachODumper {