Skip to content

Commit

Permalink
Fixes a crash reported by Kim Gwan Yeong.
Browse files Browse the repository at this point in the history
  • Loading branch information
JusticeRage committed Jun 19, 2017
1 parent 0e94805 commit dc646c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manape/section.cpp
Expand Up @@ -36,7 +36,7 @@ Section::Section(const image_section_header& header,
_file_handle(handle),
_file_size(file_size)
{
_name = std::string((char*) header.Name);
_name = std::string((char*) header.Name, 8);
pString escaped = io::escape(_name);
if (escaped != nullptr) {
_name = *escaped;
Expand Down

0 comments on commit dc646c1

Please sign in to comment.