summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-08-08 13:43:11 +0200
committerDavid Tardon <dtardon@redhat.com>2013-08-08 16:42:09 +0200
commit3ce9508e31226f2b453877e34946dc5916519d86 (patch)
treed6539002c54f152772e409aa7525dc1e000a24f0 /writerperfect
parent4bc063090c06f0c34980a3852f684b42ab25c501 (diff)
fix seek behind end of stream
Change-Id: I38db7759df87edee8a14b311005c6e31ff8ae856
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/source/common/WPXSvStream.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/writerperfect/source/common/WPXSvStream.cxx b/writerperfect/source/common/WPXSvStream.cxx
index e0c8d8c19a85..dd353119953f 100644
--- a/writerperfect/source/common/WPXSvStream.cxx
+++ b/writerperfect/source/common/WPXSvStream.cxx
@@ -143,7 +143,7 @@ int WPXSvInputStreamImpl::seek(long offset, WPX_SEEK_TYPE seekType)
tmpOffset = 0;
retVal = -1;
}
- if (offset > mnLength)
+ if (tmpOffset > mnLength)
{
tmpOffset = mnLength;
retVal = -1;