Bruno Wolff III <bruno(at)wolff(dot)to> writes:
> In cube_out 100 bytes are allocated to hold the output string.
Good point.
> Instead
> using a bound on the size of g format output and separation characters,
> this bound times twice the dimension (possibly plus a small constant for
> parens and terminating 0 byte) should be used.
I made it use an expandable buffer, instead. Much less fragile...
regards, tom lane