Skip to content

Commit

Permalink
Fix PartitionStream::seek for SeekOrigin::Start (#2356)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Aug 2, 2021
1 parent 41f3394 commit e0257cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sming/Components/Storage/src/PartitionStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ int PartitionStream::seekFrom(int offset, SeekOrigin origin)
size_t newPos;
switch(origin) {
case SeekOrigin::Start:
newPos = 0;
newPos = offset;
break;
case SeekOrigin::Current:
newPos = readPos + offset;
Expand Down

0 comments on commit e0257cd

Please sign in to comment.