mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Fix incorrect read from StringBuffer with starting offset > 0
This commit is contained in:
parent
b5c6921f2e
commit
08c0fefe25
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ class StringBuffer {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function read(int $count): string {
|
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);
|
$this->pos += strlen($chunk);
|
||||||
return $chunk;
|
return $chunk;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue