Fix bounds check in nextByte

This commit is contained in:
Andrew Tunnell-Jones 2014-03-01 02:37:10 +00:00
parent 3f834a04fb
commit 0c98da613d
1 changed files with 1 additions and 1 deletions

View File

@ -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] != '\\' {