diff options
Diffstat (limited to 'community/libpar2/libpar2-0.2-bugfixes.patch')
-rw-r--r-- | community/libpar2/libpar2-0.2-bugfixes.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/community/libpar2/libpar2-0.2-bugfixes.patch b/community/libpar2/libpar2-0.2-bugfixes.patch new file mode 100644 index 000000000..cb3c938df --- /dev/null +++ b/community/libpar2/libpar2-0.2-bugfixes.patch @@ -0,0 +1,29 @@ +diff -aud ../libpar2-0.2-original/par2repairer.cpp ../libpar2-0.2/par2repairer.cpp +--- ../libpar2-0.2-original/par2repairer.cpp 2006-01-20 18:25:20.000000000 +0100 ++++ ../libpar2-0.2/par2repairer.cpp 2008-02-06 12:02:53.226050300 +0100 +@@ -78,6 +78,7 @@ + + delete mainpacket; + delete creatorpacket; ++ delete headers; + } + + +@@ -1261,7 +1262,7 @@ + DiskFile::SplitFilename(filename, path, name); + + cout << "Target: \"" << name << "\" - missing." << endl; +- sig_done.emit(name, 0, sourcefile->GetVerificationPacket()->BlockCount()); ++ sig_done.emit(name, 0, sourcefile->GetVerificationPacket() ? sourcefile->GetVerificationPacket()->BlockCount() : 0); + } + } + +@@ -1804,7 +1805,7 @@ + } + } + } +- sig_done.emit(name,count,sourcefile->GetVerificationPacket()->BlockCount()); ++ sig_done.emit(name,count, sourcefile->GetVerificationPacket() ? sourcefile->GetVerificationPacket()->BlockCount() : 0); + sig_progress.emit(1000.0); + return true; + } |