• David Lawrence Ramsey's avatar
    tweaks: slightly optimize an allocation in display_string() · f1d214c0
    David Lawrence Ramsey authored
    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.
    f1d214c0
winio.c 99 KB