Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libterminfo Relax consistency to make it possible to mat...



details:   https://anonhg.NetBSD.org/src/rev/3eb176ebd935
branches:  trunk
changeset: 779631:3eb176ebd935
user:      joerg <joerg%NetBSD.org@localhost>
date:      Wed Jun 06 13:36:58 2012 +0000

description:
Relax consistency to make it possible to match valid entries.

diffstat:

 lib/libterminfo/term.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4500b75fbc86 -r 3eb176ebd935 lib/libterminfo/term.c
--- a/lib/libterminfo/term.c    Wed Jun 06 11:20:21 2012 +0000
+++ b/lib/libterminfo/term.c    Wed Jun 06 13:36:58 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: term.c,v 1.15 2012/06/03 23:19:10 joerg Exp $ */
+/* $NetBSD: term.c,v 1.16 2012/06/06 13:36:58 joerg Exp $ */
 
 /*
  * Copyright (c) 2009, 2010, 2011 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: term.c,v 1.15 2012/06/03 23:19:10 joerg Exp $");
+__RCSID("$NetBSD: term.c,v 1.16 2012/06/06 13:36:58 joerg Exp $");
 
 #include <sys/stat.h>
 
@@ -234,7 +234,7 @@
                goto fail;
        /* Check for alias first, fall through to processing normal entries. */
        if (data8[0] == 2) {
-               if (klen + 7 >= len || le16dec(data8 + 5) != klen)
+               if (klen + 7 > len || le16dec(data8 + 5) != klen)
                        goto fail;
                if (memcmp(data8 + 7, name, klen))
                        goto fail;



Home | Main Index | Thread Index | Old Index