cmd/internal/goobj: fix the size of Header

Missed the length of the Fingerprint field.
This commit is contained in:
mstmdev 2023-08-21 16:34:05 +08:00
parent e094e80f65
commit 87bd06d805
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ func (h *Header) Read(r *Reader) error {
}
func (h *Header) Size() int {
return len(h.Magic) + 4 + 4*len(h.Offsets)
return len(h.Magic) + len(h.Fingerprint) + 4 + 4*len(h.Offsets)
}
// Autolib