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/ab3ae77f71ea
branches:  trunk
changeset: 823960:ab3ae77f71ea
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 7f6f93851385 -r ab3ae77f71ea 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