mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
Merge pull request #105 from danielnachtrub/bugfix/StringBufferRead
Fix incorrect read from StringBuffer with starting offset > 0
This commit is contained in:
commit
6776467542
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ class StringBuffer {
|
|||
}
|
||||
|
||||
public function read(int $count): string {
|
||||
$chunk = substr($this->buffer, $this->pos, $this->pos + $count);
|
||||
$chunk = substr($this->buffer, $this->pos, $count);
|
||||
$this->pos += strlen($chunk);
|
||||
return $chunk;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue