commit | 7165bd5c33a04d8b61bdaa2c63214547cd2c08d4 | [log] [tgz] |
---|---|---|
author | Benno Schulenberg <bensberg@justemail.net> | Tue Jun 14 14:39:56 2016 +0200 |
committer | Benno Schulenberg <bensberg@justemail.net> | Tue Jun 14 17:00:22 2016 +0200 |
tree | c7f62130747b12fea9aa5b7c9549e3faf1b5ac12 | |
parent | 883373cd76044a5662a50c3d1c6b7dd3145f9f7d [diff] |
input: don't allocate too much, and don't move too many To add a character, one does not need to allocate twice its size. And the amount to be moved does not depend on the size of the new character; it just needs to include the terminating zero. (This fixes in do_output() the same logical mistakes that were fixed in do_statusbar_output() last February, in acf19bd and 7c0e433.)