llvm.org GIT mirror llvm / 4633306
From PR6228: "Attached patch removes the extra NUL bytes from the output and changes test/Archive/MacOSX.toc from a binary to a text file (removes svn:mime-type=application/octet-stream and adds svn:eol-style=native). I can't figure out how to get SVN to include the new contents of the file in the patch so I'm attaching it separately." Patch by James Abbatiello! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95292 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 10 years ago
2 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
119119 if (Hdr->name[1] == '1' && Hdr->name[2] == '/') {
120120 if (isdigit(Hdr->name[3])) {
121121 unsigned len = atoi(&Hdr->name[3]);
122 pathname.assign(At, len);
122 const char *nulp = (const char *)memchr(At, '\0', len);
123 pathname.assign(At, nulp != 0 ? nulp - At : len);
123124 At += len;
124125 MemberSize -= len;
125126 flags |= ArchiveMember::HasLongFilenameFlag;
Binary diff not shown