summaryrefslogtreecommitdiffstats
path: root/contrib/ncurses
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-07-03 09:38:46 +0000
committerpeter <peter@FreeBSD.org>2000-07-03 09:38:46 +0000
commit617b29a94a236f538e0ec4670f18d47e212dfa63 (patch)
tree8a2020b5b22e223ab182d62e1e2e94f205c0af47 /contrib/ncurses
parent61ff05be253ab1a6d0939338ce307aece558f308 (diff)
downloadFreeBSD-src-617b29a94a236f538e0ec4670f18d47e212dfa63.zip
FreeBSD-src-617b29a94a236f538e0ec4670f18d47e212dfa63.tar.gz
Fix a merge glitch - put our FREEBSD_NATIVE hack back in the original
place. The author saw fit to reindent the code which messed this up.
Diffstat (limited to 'contrib/ncurses')
-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 fdfce05..73302f8 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);
}
OpenPOWER on IntegriCloud