diff --git a/retroshare-gui/src/gui/PeersDialog.cpp b/retroshare-gui/src/gui/PeersDialog.cpp index 1e1154f8c..334570e74 100644 --- a/retroshare-gui/src/gui/PeersDialog.cpp +++ b/retroshare-gui/src/gui/PeersDialog.cpp @@ -1641,6 +1641,9 @@ void PeersDialog::anchorClicked (const QUrl& link ) uint64_t fileSize = L.at(2).toULongLong(); std::string fileHash = L.at(3).toStdString() ; + if(fileHash.length() > 40) + fileHash.resize(40) ; + #ifdef PEERS_DEBUG std::cerr << "PeersDialog::anchorClicked FileRequest : fileName : " << fileName << ". fileHash : " << fileHash << ". fileSize : " << fileSize << std::endl; #endif