(doprnt): Use a fixed buffer to store the format
authorBrian Fox <bfox@gnu.org>
Wed, 22 Sep 1993 18:12:09 +0000 (18:12 +0000)
committerBrian Fox <bfox@gnu.org>
Wed, 22 Sep 1993 18:12:09 +0000 (18:12 +0000)
commit03383aafcd2c1d87d4225223979551f14255f5f3
tree75f41b6ca437fce018700a51bdeb07b89e72646e
parent03b4122a294f7130416ab258b047029b5458cf3c
(doprnt): Use a fixed buffer to store the format
specification, but only if we are sure it will fit.  Otherwise,
use alloca () to get enouhg space.  Don't allow negative size
specifications to core dump; instead, treat them as positive
("%-20d" == "%20d").
src/doprnt.c