diff options
author | Christoph Lohmann <20h@r-36.net> | 2012-09-13 23:21:40 +0200 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2012-09-13 23:21:40 +0200 |
commit | b1563526561a913dc2a69ee78eb5aaa09cc98978 (patch) | |
tree | 1c8984858b401c145e0b5d01c7ecf81dec0ebfb1 | |
parent | 776a022e39a3c8f7c81b35d6b4307ffaa0ae3df8 (diff) | |
download | st-b1563526561a913dc2a69ee78eb5aaa09cc98978.tar.gz |
Ignore NUL character as a padding character. Telnet may use this. Patch of
Roberto Vargas.
-rw-r--r-- | st.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |