diff options
Diffstat (limited to 'lib/Object/MachOObjectFile.cpp')
-rw-r--r-- | lib/Object/MachOObjectFile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Object/MachOObjectFile.cpp b/lib/Object/MachOObjectFile.cpp index daf85b16a9..044fd32660 100644 --- a/lib/Object/MachOObjectFile.cpp +++ b/lib/Object/MachOObjectFile.cpp @@ -264,7 +264,7 @@ error_code MachOObjectFile::getSectionName(DataRefImpl DRI, InMemoryStruct<macho::Section64> Sect; MachOObj->ReadSection64(LCI, DRI.d.b, Sect); - strcpy(result, SLC->Name); + strcpy(result, Sect->SegmentName); strcat(result, ","); strcat(result, Sect->Name); } else { @@ -274,7 +274,7 @@ error_code MachOObjectFile::getSectionName(DataRefImpl DRI, InMemoryStruct<macho::Section> Sect; MachOObj->ReadSection(LCI, DRI.d.b, Sect); - strcpy(result, SLC->Name); + strcpy(result, Sect->SegmentName); strcat(result, ","); strcat(result, Sect->Name); } |