Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses Properly size and array to hold the larget ret...
details: https://anonhg.NetBSD.org/src/rev/58abd9060ba6
branches: trunk
changeset: 359437:58abd9060ba6
user: blymn <blymn%NetBSD.org@localhost>
date: Thu Jan 06 06:18:13 2022 +0000
description:
Properly size and array to hold the larget return from wctomb.
diffstat:
lib/libcurses/slk.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7e19a6e42191 -r 58abd9060ba6 lib/libcurses/slk.c
--- a/lib/libcurses/slk.c Thu Jan 06 00:16:47 2022 +0000
+++ b/lib/libcurses/slk.c Thu Jan 06 06:18:13 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: slk.c,v 1.16 2021/09/06 07:45:48 rin Exp $ */
+/* $NetBSD: slk.c,v 1.17 2022/01/06 06:18:13 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.16 2021/09/06 07:45:48 rin Exp $");
+__RCSID("$NetBSD: slk.c,v 1.17 2022/01/06 06:18:13 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_LEN_MAX];
+ char ts[MB_CUR_MAX];
#ifdef HAVE_WCHAR
cchar_t cc;
wchar_t wc[2];
Home |
Main Index |
Thread Index |
Old Index