diff options
| author | blymn <blymn@NetBSD.org> | 2000-04-20 13:22:36 +0000 |
|---|---|---|
| committer | blymn <blymn@NetBSD.org> | 2000-04-20 13:22:36 +0000 |
| commit | adf14e0d2184daaa6a92f190034a94de2435a812 (patch) | |
| tree | 7a403d6639b917e217749d8a7e4c35e0fee008b1 /lib | |
| parent | fd2c9043b87a8a964d3c5c51804b7287d0f50372 (diff) | |
Fixed t_getstr so that limit is only set to 0 iff area is NULL when an
unknown capability is requested.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libterm/termcap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libterm/termcap.c b/lib/libterm/termcap.c index e8695043d52..7c7697ce636 100644 --- a/lib/libterm/termcap.c +++ b/lib/libterm/termcap.c @@ -1,4 +1,4 @@ -/* $NetBSD: termcap.c,v 1.25 2000/04/19 15:32:28 blymn Exp $ */ +/* $NetBSD: termcap.c,v 1.26 2000/04/20 13:22:36 blymn Exp $ */ /* * Copyright (c) 1980, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)termcap.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: termcap.c,v 1.25 2000/04/19 15:32:28 blymn Exp $"); +__RCSID("$NetBSD: termcap.c,v 1.26 2000/04/20 13:22:36 blymn Exp $"); #endif #endif /* not lint */ @@ -293,7 +293,7 @@ t_getstr(info, id, area, limit) if ((i = cgetstr(info->info, ids, &s)) < 0) { errno = ENOENT; - if (limit != NULL) + if ((area == NULL) && (limit != NULL)) *limit = 0; return NULL; } |
