Fix an off by one error
This commit is contained in:
parent
a0e2601d2f
commit
03ec054d8b
@ -124,7 +124,7 @@ func write(p []byte) (n int, err error) {
|
||||
|
||||
case cur.Comment:
|
||||
var n int
|
||||
n = bytes.Index(p[index+s:], []byte("\n"))
|
||||
n = bytes.Index(p[index+s:], []byte("\n")) + 1
|
||||
if n < 0 {
|
||||
n = 0
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user