JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Remove all strcmp and strlen calls on Glyph.c[]
authorIvan Delalande <colona@ycc.fr>
Fri, 27 Jun 2014 07:15:56 +0000 (09:15 +0200)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Tue, 8 Jul 2014 07:21:48 +0000 (09:21 +0200)
commit955923b38b1f08f6cb25a706cea2af5966339187
tree45e518b217dfa8d64d0ebea0635c9700492e1db7
parent0015e198bfceae50a55403ad1339345340f4dcc0
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>
st.c