diff --git a/types.go b/types.go index 6c8110f9..47c5e750 100644 --- a/types.go +++ b/types.go @@ -509,7 +509,7 @@ func appendTXTStringByte(s []byte, b byte) []byte { } func nextByte(b []byte, offset int) (byte, int) { - if offset > len(b) { + if offset >= len(b) { return 0, 0 } if b[offset] != '\\' {