diff options
author | Ivan Delalande <colona@ycc.fr> | 2014-06-27 09:15:56 +0200 |
---|---|---|
committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2014-07-08 09:21:48 +0200 |
commit | 955923b38b1f08f6cb25a706cea2af5966339187 (patch) | |
tree | 45e518b217dfa8d64d0ebea0635c9700492e1db7 /FAQ | |
parent | 0015e198bfceae50a55403ad1339345340f4dcc0 (diff) | |
download | st-955923b38b1f08f6cb25a706cea2af5966339187.tar.gz |
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 'FAQ')
0 files changed, 0 insertions, 0 deletions