X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fio%2FSVNReportParser.cxx;h=72b6169310338b65a3a07800f7feca5c3671dbf2;hb=70c5d605641b628039f75cb8761ce783a17a5bdf;hp=d31d32763bbd61784f16056b4a62870ba219281e;hpb=61df58d65133abb4c101a9d4d4749931cae7efdb;p=simgear.git diff --git a/simgear/io/SVNReportParser.cxx b/simgear/io/SVNReportParser.cxx index d31d3276..72b61693 100644 --- a/simgear/io/SVNReportParser.cxx +++ b/simgear/io/SVNReportParser.cxx @@ -377,8 +377,9 @@ public: memset(&md5Context, 0, sizeof(SG_MD5_CTX)); SG_MD5Init(&md5Context); SG_MD5Update(&md5Context, (unsigned char*) output.data(), output.size()); - SG_MD5Final(&md5Context); - decodedFileMd5 = strutils::encodeHex(md5Context.digest, 16); + unsigned char digest[MD5_DIGEST_LENGTH]; + SG_MD5Final(digest, &md5Context); + decodedFileMd5 = strutils::encodeHex(digest, MD5_DIGEST_LENGTH); return true; }