diff options
| author | pk <pk@NetBSD.org> | 1999-06-06 20:43:00 +0000 |
|---|---|---|
| committer | pk <pk@NetBSD.org> | 1999-06-06 20:43:00 +0000 |
| commit | d467771b45c8ef042f90d8d80fe1dcbf2cd3197b (patch) | |
| tree | e209fb95af467b6c6a45c59509e06232aa7a10e9 /lib/libcurses | |
| parent | 9081585e9bbfafd0c015b1da7f732ffd173dfc2f (diff) | |
Hang on to the termcap buffer that we have tgetent() fill.
(someone ows me two hours worth of beer for this... :-)
Diffstat (limited to 'lib/libcurses')
| -rw-r--r-- | lib/libcurses/getch.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libcurses/getch.c b/lib/libcurses/getch.c index 068b90c95f0..45b6be2d9d4 100644 --- a/lib/libcurses/getch.c +++ b/lib/libcurses/getch.c @@ -1,4 +1,4 @@ -/* $NetBSD: getch.c,v 1.10 1999/04/13 14:08:18 mrg Exp $ */ +/* $NetBSD: getch.c,v 1.11 1999/06/06 20:43:00 pk Exp $ */ /* * Copyright (c) 1981, 1993, 1994 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)getch.c 8.2 (Berkeley) 5/4/94"; #else -__RCSID("$NetBSD: getch.c,v 1.10 1999/04/13 14:08:18 mrg Exp $"); +__RCSID("$NetBSD: getch.c,v 1.11 1999/06/06 20:43:00 pk Exp $"); #endif #endif /* not lint */ @@ -178,7 +178,8 @@ __init_getch(sp) { int i, j, length; keymap_t *current; - char termcap[1024], entry[1024], termname[1024], *p; +static char termcap[1024]; + char entry[1024], termname[1024], *p; key_entry_t *the_key; /* init the inkey state variable */ |
