commit | f1d214c0ef0ec781bae87544851b9d53893d6df5 | [log] [tgz] |
---|---|---|
author | David Lawrence Ramsey <pooka109@gmail.com> | Mon Feb 20 21:07:35 2017 -0600 |
committer | Benno Schulenberg <bensberg@justemail.net> | Fri Feb 24 10:52:04 2017 +0100 |
tree | 0c966a09758f93dee1e90c9f00537944904e55da | |
parent | 1d3f3a6e25bad4ef7ca45122f76a29f2937bbaf0 [diff] |
tweaks: slightly optimize an allocation in display_string() Instead of allocating enough space to convert the entire passed string, just allocate space for converting the part that will be converted -- that is: starting from start_index. This still allocates far too much (if the passed string is very long and its tail part won't fit on the screen), but it's better than before.