1
0
mirror of https://github.com/golang/go synced 2024-10-04 20:21:22 -06:00
go/src/pkg/fmt
Rob Pike f59064de80 fmt: fix up zero padding
If the padding is huge, we crashed by blowing the buffer. That's easy: make sure
we have a big enough buffer by allocating in problematic cases.
Zero padding floats was just wrong in general: the space would appear in the
middle.

Fixes #6044.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/12498043
2013-08-07 08:38:46 +10:00
..
doc.go fmt: make all errors begin with the string "%!", always. 2013-07-31 16:11:12 +10:00
export_test.go fmt, log: stop using unicode 2012-03-06 23:27:11 -05:00
fmt_test.go fmt: fix up zero padding 2013-08-07 08:38:46 +10:00
format.go fmt: fix up zero padding 2013-08-07 08:38:46 +10:00
print.go fmt: clean up some errors found by vet 2013-08-02 11:38:19 +10:00
scan_test.go fmt: clean up some errors found by vet 2013-08-02 11:38:19 +10:00
scan.go fmt: clean up some errors found by vet 2013-08-02 11:38:19 +10:00
stringer_test.go delete float, complex - code changes 2011-01-19 23:09:00 -05:00