From d467771b45c8ef042f90d8d80fe1dcbf2cd3197b Mon Sep 17 00:00:00 2001 From: pk Date: Sun, 6 Jun 1999 20:43:00 +0000 Subject: [PATCH] Hang on to the termcap buffer that we have tgetent() fill. (someone ows me two hours worth of beer for this... :-) --- lib/libcurses/getch.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/libcurses/getch.c b/lib/libcurses/getch.c index 068b90c95f00..45b6be2d9d4b 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 */