Source-Changes-HG archive

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

[xsrc/netbsd-9]: xsrc/external/mit/libX11/dist/modules/im/ximcp Apply patch, ...



details:   https://anonhg.NetBSD.org/xsrc/rev/16008213efd5
branches:  netbsd-9
changeset: 10640:16008213efd5
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Dec 07 20:18:55 2020 +0000

description:
Apply patch, requested by maya in ticket #1145:

        external/mit/libX11/dist/modules/im/ximcp/imRmAttr.c    (patch)

PR 55640: fix off by one in X Input Method.

diffstat:

 external/mit/libX11/dist/modules/im/ximcp/imRmAttr.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 184b751e488f -r 16008213efd5 external/mit/libX11/dist/modules/im/ximcp/imRmAttr.c
--- a/external/mit/libX11/dist/modules/im/ximcp/imRmAttr.c      Mon Dec 07 19:27:20 2020 +0000
+++ b/external/mit/libX11/dist/modules/im/ximcp/imRmAttr.c      Mon Dec 07 20:18:55 2020 +0000
@@ -1407,7 +1407,7 @@
     *names_len = 0;
     while (total > min_len) {
        len = attr[2];
-       if (len >= (total - min_len)) {
+       if (len > (total - min_len)) {
            return 0;
        }
        *names_len += (len + 1);



Home | Main Index | Thread Index | Old Index