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 acf19bde and 7c0e4333.)
Showing
+2 -2
Please register or sign in to comment