diff options
-rw-r--r-- | torrentparser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/torrentparser.cpp b/torrentparser.cpp index 635d8a7..d8fb35b 100644 --- a/torrentparser.cpp +++ b/torrentparser.cpp @@ -74,6 +74,7 @@ const QByteArray TorrentParser::parseString(){ } int len = mData.mid(mPos, lenlen).toInt(); if(mPos + len > mData.size()){ + ++mPos; return QByteArray(); } mPos = mPos + lenlen + 1; |