mirror of https://github.com/golang/go.git
cmd/internal/goobj: fix the size of Header
Missed the length of the Fingerprint field.
This commit is contained in:
parent
e094e80f65
commit
87bd06d805
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue