blob: 5de471403169c7288fa4a66a705717e203f40f1c (
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/dirdef.cpp.orig 2022-08-11 20:14:32 UTC
+++ src/dirdef.cpp
@@ -14,6 +14,7 @@
*/
#include <algorithm>
+#include <sys/types.h>
#include "dirdef.h"
#include "md5.h"
@@ -181,10 +182,8 @@ static QCString encodeDirName(const QCString &anchor)
static QCString encodeDirName(const QCString &anchor)
{
// convert to md5 hash
- uchar md5_sig[16];
- char sigStr[33];
- MD5Buffer(anchor.data(),anchor.length(),md5_sig);
- MD5SigToString(md5_sig,sigStr);
+ QCString sigStr(33);
+ MD5Data((const unsigned char *)anchor.data(),anchor.length(),sigStr.rawData());
return sigStr;
// old algorithm
|