Skip to content

Commit

Permalink
Fixed int overflow in filetransfer when ranged transfer used (Psi+ Is…
Browse files Browse the repository at this point in the history
…sue 499)
  • Loading branch information
Ri0n committed Mar 30, 2012
1 parent 3983ceb commit debf815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xmpp/xmpp-im/filetransfer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ bool JT_FT::take(const QDomElement &x)
if(!file.isNull()) {
QDomElement range = file.elementsByTagName("range").item(0).toElement();
if(!range.isNull()) {
int x;
qlonglong x;
bool ok;
if(range.hasAttribute("offset")) {
x = range.attribute("offset").toLongLong(&ok);
Expand Down

0 comments on commit debf815

Please sign in to comment.