Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libterm Fixed t_getstr so that limit is only set to 0 if...
details: https://anonhg.NetBSD.org/src/rev/e3915f0c8a71
branches: trunk
changeset: 485144:e3915f0c8a71
user: blymn <blymn%NetBSD.org@localhost>
date: Thu Apr 20 13:22:36 2000 +0000
description:
Fixed t_getstr so that limit is only set to 0 iff area is NULL when an
unknown capability is requested.
diffstat:
lib/libterm/termcap.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 76d8dd285ead -r e3915f0c8a71 lib/libterm/termcap.c
--- a/lib/libterm/termcap.c Thu Apr 20 13:12:14 2000 +0000
+++ b/lib/libterm/termcap.c Thu Apr 20 13:22:36 2000 +0000
@@ -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 @@
if ((i = cgetstr(info->info, ids, &s)) < 0) {
errno = ENOENT;
- if (limit != NULL)
+ if ((area == NULL) && (limit != NULL))
*limit = 0;
return NULL;
}
Home |
Main Index |
Thread Index |
Old Index