Module Name: src
Committed By: roy
Date: Tue May 16 10:29:06 UTC 2017
Modified Files:
src/lib/libterminfo: term.c
Log Message:
Fix prior for multiple terminfo aliases.
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/lib/libterminfo/term.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libterminfo/term.c
diff -u src/lib/libterminfo/term.c:1.25 src/lib/libterminfo/term.c:1.26
--- src/lib/libterminfo/term.c:1.25 Tue May 16 10:25:40 2017
+++ src/lib/libterminfo/term.c Tue May 16 10:29:06 2017
@@ -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 @@ _ti_checkname(const TERMINAL *term, cons
if ((size_t)(p - a) == name_len &&
memcmp(name, a, name_len) == 0)
return 1;
+ if (*p == '|')
+ p++;
}
/* No match. */