Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libterminfo Fix prior for multiple terminfo aliases.
details: https://anonhg.NetBSD.org/src/rev/f5c889444180
branches: trunk
changeset: 353659:f5c889444180
user: roy <roy%NetBSD.org@localhost>
date: Tue May 16 10:29:06 2017 +0000
description:
Fix prior for multiple terminfo aliases.
diffstat:
lib/libterminfo/term.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 10f11059783e -r f5c889444180 lib/libterminfo/term.c
--- a/lib/libterminfo/term.c Tue May 16 10:25:40 2017 +0000
+++ b/lib/libterminfo/term.c Tue May 16 10:29:06 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: term.c,v 1.25 2017/05/16 10:25:40 roy Exp $ */
+/* $NetBSD: term.c,v 1.26 2017/05/16 10:29:06 roy Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: term.c,v 1.25 2017/05/16 10:25:40 roy Exp $");
+__RCSID("$NetBSD: term.c,v 1.26 2017/05/16 10:29:06 roy Exp $");
#include <sys/stat.h>
@@ -262,6 +262,8 @@
if ((size_t)(p - a) == name_len &&
memcmp(name, a, name_len) == 0)
return 1;
+ if (*p == '|')
+ p++;
}
/* No match. */
Home |
Main Index |
Thread Index |
Old Index