[PATCH] D139449: [ObjYAML] Pass 10 instead of 16 for strncmp

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 6 12:31:07 PST 2022


MaskRay accepted this revision.
MaskRay added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/lib/ObjectYAML/MachOEmitter.cpp:304
       if (0 ==
-          strncmp(&LC.Data.segment_command_data.segname[0], "__LINKEDIT", 16)) {
+          strcmp(&LC.Data.segment_command_data.segname[0], "__LINKEDIT")) {
         FoundLinkEditSeg = true;
----------------
`strcmp(LC.Data.segment_command_data.segname, ...`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139449/new/

https://reviews.llvm.org/D139449



More information about the llvm-commits mailing list