From: Stefan Nilsson Date: Fri, 23 Mar 2012 21:16:57 +0000 (+1100) Subject: os: add missing byte to FileMode buffer X-Git-Tag: weekly~56 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2dfcbd0a3b216a793f3a450889e51781c142539b;p=gostls13.git os: add missing byte to FileMode buffer 32 bytes is enough for all FileMode bits. R=golang-dev, r CC=golang-dev https://golang.org/cl/5853044 --- diff --git a/src/pkg/os/types.go b/src/pkg/os/types.go index 01dddf50de..0c95c9cece 100644 --- a/src/pkg/os/types.go +++ b/src/pkg/os/types.go @@ -58,7 +58,7 @@ const ( func (m FileMode) String() string { const str = "dalTLDpSugct" - var buf [20]byte + var buf [32]byte // Mode is uint32. w := 0 for i, c := range str { if m&(1<