Skip to content
This repository has been archived by the owner on Nov 10, 2018. It is now read-only.

Commit

Permalink
Fix an error
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilhemN committed Aug 16, 2016
1 parent 5fecfb0 commit fe5464e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions StringReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function eatSpan($mask, $maxLength = null)
$maxLength = $this->getRemainingByteCount();
}

return $this->read(strspn($this->data, $mask, $maxLength));
return $this->read(strspn($this->data, $mask, $this->offset, $maxLength));
}

/**
Expand All @@ -117,7 +117,7 @@ public function eatCSpan($mask, $maxLength = null)
$maxLength = $this->getRemainingByteCount();
}

return $this->read(strcspn($this->data, $mask, $maxLength));
return $this->read(strcspn($this->data, $mask, $this->offset, $maxLength));
}

public function getOffset()
Expand Down

0 comments on commit fe5464e

Please sign in to comment.