diff options
author | Ivan Delalande | 2014-06-27 09:15:56 +0200 |
---|---|---|
committer | Roberto E. Vargas Caballero | 2014-07-08 09:21:48 +0200 |
commit | 955923b38b1f08f6cb25a706cea2af5966339187 (patch) | |
tree | 45e518b217dfa8d64d0ebea0635c9700492e1db7 /TODO | |
parent | 0015e198bfceae50a55403ad1339345340f4dcc0 (diff) | |
download | st-955923b38b1f08f6cb25a706cea2af5966339187.tar.gz st-955923b38b1f08f6cb25a706cea2af5966339187.tar.xz st-955923b38b1f08f6cb25a706cea2af5966339187.zip |
Remove all strcmp and strlen calls on Glyph.c[]
There were a few occurrences of strcmp and strlen being called on Glyph.c[],
which is not always null-terminated (this actually depends on the last values in
the buffer s in ttyread()). This patch replace all the calls to strcmp with a
test on c[0] directly or a call to tlinelen, and the one to strlen with utf8len.
I also took the opportunity to refactor getsel and tdumpline.
Signed-off-by: Roberto E. Vargas Caballero <k0ga@shike2.com>
Diffstat (limited to 'TODO')
0 files changed, 0 insertions, 0 deletions