]> Sergey Matveev's repositories - st.git/commitdiff
Ignore NUL character as a padding character. Telnet may use this. Patch of
authorChristoph Lohmann <20h@r-36.net>
Thu, 13 Sep 2012 21:21:40 +0000 (23:21 +0200)
committerChristoph Lohmann <20h@r-36.net>
Thu, 13 Sep 2012 21:21:40 +0000 (23:21 +0200)
Roberto Vargas.

st.c

diff --git a/st.c b/st.c
index c2ee3e28b73a28864ff3f485776bf5538bfe29dd..da895c6a64bc3d3a46212c61ed2c3abdd22584de 100644 (file)
--- a/st.c
+++ b/st.c
@@ -1723,6 +1723,8 @@ tputc(char *c) {
                if(sel.bx != -1 && BETWEEN(term.c.y, sel.by, sel.ey))
                        sel.bx = -1;
                switch(ascii) {
+               case '\0': /* padding character, do nothing */
+                       break;
                case '\t':
                        tputtab(1);
                        break;