TaskUzonline: Improve address bounds detecting.

This commit is contained in:
Nodir Temirkhodjaev 2017-10-26 09:09:43 +05:00
parent 76b88cf4d4
commit 56b7d8042e

View File

@ -17,8 +17,8 @@ void TaskUzonline::setupDownloader() const
QStringList TaskUzonline::parseUzonlineBuffer(const QByteArray &buffer) QStringList TaskUzonline::parseUzonlineBuffer(const QByteArray &buffer)
{ {
const int startPos = buffer.indexOf("=START="); const int startPos = buffer.indexOf("=UZONLINE=START=");
const int endPos = buffer.indexOf("=END=", startPos + 1); const int endPos = buffer.indexOf("=UZONLINE=END=", startPos + 1);
if (startPos < 0 || endPos < 0) if (startPos < 0 || endPos < 0)
return QStringList(); return QStringList();