Descriptionfmt: 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 issue 6044.
Patch Set 1 #
Total comments: 1
Patch Set 2 : diff -r 626c01d29570 https://code.google.com/p/go/ #
MessagesTotal messages: 3
|