aboutsummaryrefslogtreecommitdiff
path: root/FAQ
diff options
context:
space:
mode:
authorIvan Delalande <colona@ycc.fr>2014-06-27 09:15:56 +0200
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2014-07-08 09:21:48 +0200
commit955923b38b1f08f6cb25a706cea2af5966339187 (patch)
tree45e518b217dfa8d64d0ebea0635c9700492e1db7 /FAQ
parent0015e198bfceae50a55403ad1339345340f4dcc0 (diff)
downloadst-955923b38b1f08f6cb25a706cea2af5966339187.tar.gz
st-955923b38b1f08f6cb25a706cea2af5966339187.tar.bz2
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