summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2000-07-03 09:38:46 +0000
committerPeter Wemm <peter@FreeBSD.org>2000-07-03 09:38:46 +0000
commitb589b6f200796e06347ddfa76d34fbe0d609a9c2 (patch)
tree1d433597b33a1b30e5f440f4575625d1d571a69f
parent82d9ae4e32fad7f55867e1e63054aef03b0a5fc8 (diff)
Notes
-rw-r--r--contrib/ncurses/ncurses/tinfo/lib_termcap.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/contrib/ncurses/ncurses/tinfo/lib_termcap.c b/contrib/ncurses/ncurses/tinfo/lib_termcap.c
index fdfce051eddc..73302f8933b0 100644
--- a/contrib/ncurses/ncurses/tinfo/lib_termcap.c
+++ b/contrib/ncurses/ncurses/tinfo/lib_termcap.c
@@ -103,16 +103,17 @@ tgetent(char *bufp GCC_UNUSED, const char *name)
/* LINT_PREPRO
#endif*/
+ }
+
#ifdef FREEBSD_NATIVE
- /*
- * This is a REALLY UGLY hack. Basically, if we originate with
- * a termcap source, try and copy it out.
- */
- if (bufp && _nc_termcap[0])
- strncpy(bufp, _nc_termcap, 1024);
+ /*
+ * This is a REALLY UGLY hack. Basically, if we originate with
+ * a termcap source, try and copy it out.
+ */
+ if (bufp && _nc_termcap[0])
+ strncpy(bufp, _nc_termcap, 1024);
#endif
- }
returnCode(errcode);
}