From 75efccf7f976e417445f99e6eb35fcd5968a2bb0 Mon Sep 17 00:00:00 2001 From: Liu Ming Date: Fri, 18 Aug 2017 11:15:10 +0800 Subject: [PATCH] fix issue #25 --- workbook.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/workbook.go b/workbook.go index e8199b7..b0aa076 100644 --- a/workbook.go +++ b/workbook.go @@ -101,6 +101,10 @@ func (wb *WorkBook) parseBof(buf io.ReadSeeker, b *bof, pre *bof, offset_pre int wb.sst[offset_pre] = wb.sst[offset_pre] + str } + if err == io.EOF { + break + } + offset_pre++ err = binary.Read(buf_item, binary.LittleEndian, &size) }