Skip to content

Commit

Permalink
Merge pull request #298 from teco-kit/master
Browse files Browse the repository at this point in the history
Fix omitting leading 0's when concatenating hex bytes in stringstream
  • Loading branch information
wrwilliams committed Dec 19, 2016
2 parents e889b1d + 731a009 commit 348e189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elf/src/Elf_X.C
Expand Up @@ -1692,7 +1692,7 @@ bool Elf_X::findDebugFile(std::string origfilename, string &output_name, char* &
buildid_path << "/usr/lib/debug/.build-id/"
<< hex << setfill('0') << setw(2) << (unsigned)desc[0] << '/';
for (unsigned long j = 1; j < note.n_descsz(); ++j)
buildid_path << (unsigned)desc[j];
buildid_path << setw(2) << (unsigned)desc[j];
buildid_path << ".debug";
debugFileFromBuildID = buildid_path.str();
break;
Expand Down

0 comments on commit 348e189

Please sign in to comment.