Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses Revert change for array definition, it was inc...



details:   https://anonhg.NetBSD.org/src/rev/0774af020692
branches:  trunk
changeset: 359449:0774af020692
user:      blymn <blymn%NetBSD.org@localhost>
date:      Thu Jan 06 20:50:18 2022 +0000

description:
Revert change for array definition, it was incorrect, thanks Uwe.

diffstat:

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

diffs (27 lines):

diff -r e26149be4e76 -r 0774af020692 lib/libcurses/slk.c
--- a/lib/libcurses/slk.c       Thu Jan 06 20:41:30 2022 +0000
+++ b/lib/libcurses/slk.c       Thu Jan 06 20:50:18 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: slk.c,v 1.17 2022/01/06 06:18:13 blymn Exp $   */
+/*     $NetBSD: slk.c,v 1.18 2022/01/06 20:50:18 blymn Exp $   */
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: slk.c,v 1.17 2022/01/06 06:18:13 blymn Exp $");
+__RCSID("$NetBSD: slk.c,v 1.18 2022/01/06 20:50:18 blymn Exp $");
 #endif                         /* not lint */
 
 #include <ctype.h>
@@ -811,7 +811,7 @@
 {
        const struct __slk_label *l;
        int retval, inc, lcnt, tx;
-       char ts[MB_CUR_MAX];
+       char ts[MB_LEN_MAX];
 #ifdef HAVE_WCHAR
        cchar_t cc;
        wchar_t wc[2];



Home | Main Index | Thread Index | Old Index