Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses Use MBL_LEN_MAX (constant) so that SSP works
details: https://anonhg.NetBSD.org/src/rev/6a55a1e61a40
branches: trunk
changeset: 1022940:6a55a1e61a40
user: christos <christos%NetBSD.org@localhost>
date: Sun Aug 15 11:44:39 2021 +0000
description:
Use MBL_LEN_MAX (constant) so that SSP works
diffstat:
lib/libcurses/slk.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r dce6b4497d1c -r 6a55a1e61a40 lib/libcurses/slk.c
--- a/lib/libcurses/slk.c Sun Aug 15 11:00:43 2021 +0000
+++ b/lib/libcurses/slk.c Sun Aug 15 11:44:39 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: slk.c,v 1.11 2021/06/24 15:41:25 martin Exp $ */
+/* $NetBSD: slk.c,v 1.12 2021/08/15 11:44:39 christos Exp $ */
/*-
* Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: slk.c,v 1.11 2021/06/24 15:41:25 martin Exp $");
+__RCSID("$NetBSD: slk.c,v 1.12 2021/08/15 11:44:39 christos Exp $");
#endif /* not lint */
#include <ctype.h>
@@ -818,7 +818,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