Pk11 77fc7af2f2 Use macro for UTF-8 byte count
Makes it more clear why all of the buffers are being multiplied by 4

Fix UTF-8 bytesize macro

Before UTF_BUFFER_BYTESIZE(str_width - 10)] would multiply the 10, not the whole number, by UTF_MAX_BYTES_PER_RUNE

Do (rune_count + 1) * 4 in UTF-8 bytesize macro

Fix Resize/Truncate String snprintf size

Before it would break if the last character was multi-byte
2021-11-14 22:14:53 +01:00
..
2020-08-26 23:01:58 +02:00
2017-11-17 19:37:45 +01:00
2021-11-14 22:14:53 +01:00
2021-07-23 14:01:19 +02:00
2020-08-26 23:01:58 +02:00
2017-11-17 19:37:45 +01:00
2021-11-14 22:14:53 +01:00
2021-11-14 22:14:53 +01:00
2020-08-26 23:01:58 +02:00
2019-06-03 02:27:44 +02:00
2021-11-14 22:14:53 +01:00
2021-02-05 13:16:01 +01:00
2017-11-17 19:37:45 +01:00
2017-11-17 19:37:45 +01:00