summaryrefslogtreecommitdiff
path: root/devel/doxygen/files/patch-md5-memberdef
blob: d42698ae1fb1224fe38b0b22aed6854f7d12c023 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- src/memberdef.cpp.orig	2021-08-18 13:55:35 UTC
+++ src/memberdef.cpp
@@ -17,6 +17,7 @@
 #include <stdio.h>
 #include <assert.h>
 #include <mutex>
+#include <sys/types.h>
 
 #include "md5.h"
 #include "memberdef.h"
@@ -4139,10 +4140,8 @@ void MemberDefImpl::setAnchor()
   }
 
   // convert to md5 hash
-  uchar md5_sig[16];
-  char sigStr[33];
-  MD5Buffer((const unsigned char *)memAnchor.data(),memAnchor.length(),md5_sig);
-  MD5SigToString(md5_sig,sigStr);
+  QCString sigStr(33);
+  MD5Data((const unsigned char *)memAnchor.data(),memAnchor.length(),sigStr.rawData());
   m_impl->anc = QCString("a")+sigStr;
 }