updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / par2cmdline / 03-Correct-error-in-Par2CreatorSourceFile-UpdateHashes-.patch
blob2367c4d717eb6bd52880a4ecdde6a66cdbcdfded
1 --- a/par2creatorsourcefile.cpp
2 +++ b/par2creatorsourcefile.cpp
3 @@ -319,7 +319,7 @@ void Par2CreatorSourceFile::UpdateHashes(u32 blocknumber, const void *buffer, si
6 // Update the full file hash, but don't go beyond the end of the file
7 - if (length > filesize - blocknumber * length)
8 + if ((u64)length > filesize - blocknumber * (u64)length)
10 length = (size_t)(filesize - blocknumber * (u64)length);