summaryrefslogtreecommitdiffstats
path: root/contrib/tcsh/ed.term.c
diff options
context:
space:
mode:
authormp <mp@FreeBSD.org>2012-02-22 03:36:15 +0000
committermp <mp@FreeBSD.org>2012-02-22 03:36:15 +0000
commit3ee51a00f36c11a6172d08d787943dfc63f66110 (patch)
tree522fd2d4d27770566e466a79d636194e5743d94a /contrib/tcsh/ed.term.c
parentd177303078ee8f6069218009d6c3c2b6d9d9ca97 (diff)
parent54c5644df8eb87e7a5b1c4c411e349ac329ee04b (diff)
downloadFreeBSD-src-3ee51a00f36c11a6172d08d787943dfc63f66110.zip
FreeBSD-src-3ee51a00f36c11a6172d08d787943dfc63f66110.tar.gz
Update to tcsh 6.18.01.
Diffstat (limited to 'contrib/tcsh/ed.term.c')
-rw-r--r--contrib/tcsh/ed.term.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/tcsh/ed.term.c b/contrib/tcsh/ed.term.c
index a235e11..8580007 100644
--- a/contrib/tcsh/ed.term.c
+++ b/contrib/tcsh/ed.term.c
@@ -1,4 +1,4 @@
-/* $Header: /p/tcsh/cvsroot/tcsh/ed.term.c,v 1.36 2006/03/02 18:46:44 christos Exp $ */
+/* $Header: /p/tcsh/cvsroot/tcsh/ed.term.c,v 1.38 2011/02/25 23:58:34 christos Exp $ */
/*
* ed.term.c: Low level terminal interface
*/
@@ -33,8 +33,8 @@
#include "sh.h"
#ifndef WINNT_NATIVE
-RCSID("$tcsh: ed.term.c,v 1.36 2006/03/02 18:46:44 christos Exp $")
-
+RCSID("$tcsh: ed.term.c,v 1.38 2011/02/25 23:58:34 christos Exp $")
+#include <assert.h>
#include "ed.h"
int didsetty = 0;
@@ -633,6 +633,7 @@ dosetty(Char **v, struct command *t)
i = m->m_type;
st = len = strlen(ttylist[z][m->m_type].t_name);
}
+ assert(i != -1);
x = (ttylist[z][i].t_setmask & m->m_value) ? '+' : '\0';
x = (ttylist[z][i].t_clrmask & m->m_value) ? '-' : x;
OpenPOWER on IntegriCloud