openbsd-ports/net/amule/patches/patch-src_BaseClient_cpp
dcoppa dc814c74e9 Fix a couple of crashers:
fix crash on truncated statistics.dat
(upstream git commit 5e3682f7efed13eb52e4358a2d91b0e381334120)

fix amuleweb crash on CProgressImage::CreateSpan
(upstream git commit 846dcf92ce64fd42caf8a86d644fe3a3f4683d09)

And:

fix showing of shared files to other clients
(upstream git commit 4e40aecb160baac72aa28a8a4c7aaf19261e051f)

change nodes.dat default download URL to something actually working
(upstream git commit 8dbe597539bcac7272ccf4d46790fde814aeded1)
2012-02-22 07:54:26 +00:00

17 lines
627 B
Plaintext

$OpenBSD: patch-src_BaseClient_cpp,v 1.3 2012/02/22 07:54:26 dcoppa Exp $
Fix showing of shared files to other clients
(upstream git commit 4e40aecb160baac72aa28a8a4c7aaf19261e051f)
--- src/BaseClient.cpp.orig Wed Oct 5 21:02:32 2011
+++ src/BaseClient.cpp Tue Feb 21 15:56:05 2012
@@ -2857,7 +2857,7 @@ void CUpDownClient::SendSharedDirectories()
// Build packet
CMemFile tempfile(80);
- tempfile.WriteUInt32(foldersToSend.size());
+ tempfile.WriteUInt32(foldersToSend.size() + 1); // + 1 for the incomplete files
PathList::iterator it = foldersToSend.begin();
for (; it != foldersToSend.end(); ++it) {