$OpenBSD: patch-src_dirdef_cpp,v 1.1 2008/01/06 10:02:59 eric Exp $ --- src/dirdef.cpp.orig Sun Jan 28 13:28:50 2007 +++ src/dirdef.cpp Sat Dec 29 01:27:05 2007 @@ -71,11 +71,16 @@ void DirDef::addFile(FileDef *fd) static QCString encodeDirName(const QCString &anchor) { QCString result; - + char *name, *prefix; // convert to md5 hash uchar md5_sig[16]; QCString sigStr(33); - MD5Buffer((const unsigned char *)anchor.data(),anchor.length(),md5_sig); + name = (char*)anchor.data(); + prefix = getenv("DOXYGEN_ENCODE_PATH_STRIP"); + if(prefix != NULL) + if (strstr(name, prefix) == name) + name += strlen(prefix); + MD5Buffer((const unsigned char*)name,strlen(name),md5_sig); MD5SigToString(md5_sig,sigStr.data(),33); return sigStr;