Fix decodeEscapeString err

`p` was not updated after the `stream.buf` is reallocated
This commit is contained in:
peterlimg 2021-07-27 21:53:59 +10:00
parent ad245e5323
commit 91e691adc5
No known key found for this signature in database
GPG Key ID: 4F031F0B25AD570C
1 changed files with 1 additions and 0 deletions

View File

@ -170,6 +170,7 @@ RETRY:
s.buf = append(s.buf[:s.cursor-1], s.buf[s.cursor:]...) s.buf = append(s.buf[:s.cursor-1], s.buf[s.cursor:]...)
s.length-- s.length--
s.cursor-- s.cursor--
p = s.bufptr()
return p, nil return p, nil
} }