This commit is contained in:
shoopea 2019-06-09 22:28:19 +08:00
parent 367b5826eb
commit 333f4c86bb

2
msg.go
View File

@ -326,7 +326,7 @@ func zipMessages() ([]byte, error) {
func UnzipMessages(z []byte) error { func UnzipMessages(z []byte) error {
log.Printf("UnzipMessages : %d bytes.\n", len(z)) log.Printf("UnzipMessages : %d bytes.\n", len(z))
r := bytes.NewReader(z) r := bytes.NewReader(z)
zr, err := zip.NewReader(r, len(z)) zr, err := zip.NewReader(r, int64(len(z)))
for _, f := range zr.File { for _, f := range zr.File {
log.Printf("File : %s\n", f.Name) log.Printf("File : %s\n", f.Name)