Ticket #51524: patch-src-snowleopard-MachOYAML.diff
File patch-src-snowleopard-MachOYAML.diff, 456 bytes (added by kenneth.f.cunningham@…, 8 years ago) |
---|
-
lib/ObjectYAML/MachOYAML.cpp
old new 17 17 18 18 #include <string.h> // For memcpy, memset and strnlen. 19 19 20 21 static size_t 22 strnlen(const char *s, size_t maxlen) 23 { 24 size_t len; 25 26 for (len = 0; len < maxlen; len++, s++) { 27 if (!*s) 28 break; 29 } 30 return (len); 31 } 32 33 34 20 35 namespace llvm { 21 36 22 37 MachOYAML::LoadCommand::~LoadCommand() {}