Module Name: src Committed By: christos Date: Sun Aug 15 11:44:39 UTC 2021
Modified Files: src/lib/libcurses: slk.c Log Message: Use MBL_LEN_MAX (constant) so that SSP works To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 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.11 src/lib/libcurses/slk.c:1.12 --- src/lib/libcurses/slk.c:1.11 Thu Jun 24 11:41:25 2021 +++ src/lib/libcurses/slk.c Sun Aug 15 07:44:39 2021 @@ -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 @@ __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];