Skip to content

Commit

Permalink
Fixup 7543f30
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Jun 5, 2017
1 parent c87c0cc commit 751b757
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public function push(string $data) {
break;
}

$send = \substr($this->buffer, 0, $position);
$this->buffer = \substr($this->buffer, $position + \strlen($this->delimiter));
$send = \substr($this->buffer, 0, $position - \strlen($this->delimiter));
$this->buffer = \substr($this->buffer, $position);
} else {
$send = $this->buffer;
$this->buffer = "";
Expand Down

0 comments on commit 751b757

Please sign in to comment.