Skip to content

Commit

Permalink
Merge pull request #15 from jthiltges/csum_segv
Browse files Browse the repository at this point in the history
Fix segfault in checksum formatting
  • Loading branch information
bbockelm authored Aug 27, 2018
2 parents 2f498da + 3bbc6b8 commit bb4552e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdHdfsChecksumCalc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ human_readable_evp(const unsigned char *evp, size_t length)
std::string result; result.reserve(length*2);
for (idx = 0; idx < length; idx++)
{
char encoded[2];
char encoded[3];
sprintf(encoded, "%02x", evp[idx]);
result += encoded;
}
Expand Down

0 comments on commit bb4552e

Please sign in to comment.