summaryrefslogtreecommitdiff
path: root/src/pkg/archive/tar
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/archive/tar')
-rw-r--r--src/pkg/archive/tar/reader.go6
-rw-r--r--src/pkg/archive/tar/writer.go2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/archive/tar/reader.go b/src/pkg/archive/tar/reader.go
index 81d79841d..083301b5f 100644
--- a/src/pkg/archive/tar/reader.go
+++ b/src/pkg/archive/tar/reader.go
@@ -121,11 +121,11 @@ func (tr *Reader) readHeader() *Header {
}
// Two blocks of zero bytes marks the end of the archive.
- if bytes.Equal(header, zeroBlock[0:blockSize]) {
+ if bytes.Equal(header, zeroBlock[0 : blockSize]) {
if _, tr.err = io.ReadFull(tr.r, header); tr.err != nil {
return nil;
}
- if !bytes.Equal(header, zeroBlock[0:blockSize]) {
+ if !bytes.Equal(header, zeroBlock[0 : blockSize]) {
tr.err = HeaderError;
}
return nil;
@@ -198,7 +198,7 @@ func (tr *Reader) readHeader() *Header {
// Maximum value of hdr.Size is 64 GB (12 octal digits),
// so there's no risk of int64 overflowing.
tr.nb = int64(hdr.Size);
- tr.pad = -tr.nb & (blockSize-1); // blockSize is a power of two
+ tr.pad = -tr.nb & (blockSize - 1); // blockSize is a power of two
return hdr;
}
diff --git a/src/pkg/archive/tar/writer.go b/src/pkg/archive/tar/writer.go
index f253a01ce..5e0626493 100644
--- a/src/pkg/archive/tar/writer.go
+++ b/src/pkg/archive/tar/writer.go
@@ -120,7 +120,7 @@ func (tw *Writer) WriteHeader(hdr *Header) os.Error {
}
tw.nb = int64(hdr.Size);
- tw.pad = -tw.nb & (blockSize-1); // blockSize is a power of two
+ tw.pad = -tw.nb & (blockSize - 1); // blockSize is a power of two
header := make([]byte, blockSize);
s := slicer(header);