Forgot to put in regular bytes during decompression

This commit is contained in:
obscuren
2014-11-03 00:29:34 +01:00
parent 9f8bcf3abc
commit 5dcf59bdf4
2 changed files with 24 additions and 0 deletions

View File

@ -37,6 +37,8 @@ func Decompress(dat []byte) ([]byte, error) {
} else {
return nil, errors.New("error reading bytes. token encountered without proceeding bytes")
}
} else {
buf.WriteByte(dat[i])
}
}