Module Name: src
Committed By: blymn
Date: Thu Jan 6 20:50:19 UTC 2022
Modified Files:
src/lib/libcurses: slk.c
Log Message:
Revert change for array definition, it was incorrect, thanks Uwe.
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/lib/libcurses/slk.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libcurses/slk.c
diff -u src/lib/libcurses/slk.c:1.17 src/lib/libcurses/slk.c:1.18
--- src/lib/libcurses/slk.c:1.17 Thu Jan 6 06:18:13 2022
+++ src/lib/libcurses/slk.c Thu Jan 6 20:50:18 2022
@@ -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 @@ __slk_draw(SCREEN *screen, int labnum)
{
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];