[hackers] [st] Ignore NUL character as a padding character. Telnet may use this. Patch of || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Thu, 13 Sep 2012 23:23:47 +0200 (CEST)

changeset: 301:abf95fd3442b
tag: tip
user: Christoph Lohmann <20h_AT_r-36.net>
date: Thu Sep 13 23:21:40 2012 +0200
files: st.c
description:
Ignore NUL character as a padding character. Telnet may use this. Patch of
Roberto Vargas.


diff -r 8e7b27e88122 -r abf95fd3442b st.c
--- a/st.c Thu Sep 13 23:19:57 2012 +0200
+++ b/st.c Thu Sep 13 23:21:40 2012 +0200
_AT_@ -1723,6 +1723,8 @@
                 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;
Received on Thu Sep 13 2012 - 23:23:47 CEST

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 23:24:08 CEST