tape: Fix bufferLenTag off by one error

This commit is contained in:
2025-10-12 13:39:37 -04:00
parent b44d364f0f
commit 813d219580

View File

@@ -78,6 +78,6 @@ func bufferLenTag(length int) Tag {
if length < int(CNLimit) {
return SBA.WithCN(length)
} else {
return LBA.WithCN(IntBytes(uint64(length)))
return LBA.WithCN(IntBytes(uint64(length)) - 1)
}
}