ports/devel/doxygen/files/patch-md5-dotgraph
Dima Panov ee457f651e devel/doxygen: update to 1.9.2 release
Disable default runtime hard-depend on LATeX.
It needed only for some science/math apps to render formulas.

Sponsored by:	Netzkommune GmbH
2021-12-16 11:49:50 +03:00

26 lines
835 B
Text

--- src/dotgraph.cpp.orig 2021-05-12 18:53:13 UTC
+++ src/dotgraph.cpp
@@ -18,6 +18,7 @@
#include "config.h"
#include "doxygen.h"
#include "index.h"
+#include <sys/types.h>
#include "md5.h"
#include "message.h"
#include "util.h"
@@ -147,12 +148,9 @@ bool DotGraph::prepareDotFile()
term("Output dir %s does not exist!\n", m_dir.path().c_str());
}
- char sigStr[33];
- uchar md5_sig[16];
- // calculate md5
- MD5Buffer((const unsigned char*)m_theGraph.data(), m_theGraph.length(), md5_sig);
- // convert result to a string
- MD5SigToString(md5_sig, sigStr);
+ QCString sigStr(33);
+ // calculate md5 and convert result to a string
+ MD5Data((const unsigned char*)m_theGraph.data(), m_theGraph.length(), sigStr.rawData());
// already queued files are processed again in case the output format has changed