diff --git a/src/imageformats/raw.cpp b/src/imageformats/raw.cpp index 63d817a..00a3257 100644 --- a/src/imageformats/raw.cpp +++ b/src/imageformats/raw.cpp @@ -141,7 +141,7 @@ public: if (whence == SEEK_END) { pos = size + o; } - if (pos < 0 || pos > size || m_device->isSequential()) { + if (pos < 0 || m_device->isSequential()) { return -1; } return m_device->seek(pos) ? 0 : -1;