From: millert Date: Wed, 20 Sep 2023 16:49:13 +0000 (+0000) Subject: Use awk_mb_cur_max in nawk_convert() instead of MB_CUR_MAX. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3d704b39806664638afca2b03ef332bb758bf223;p=openbsd Use awk_mb_cur_max in nawk_convert() instead of MB_CUR_MAX. --- diff --git a/usr.bin/awk/run.c b/usr.bin/awk/run.c index d6920fa276a..436b6c75290 100644 --- a/usr.bin/awk/run.c +++ b/usr.bin/awk/run.c @@ -1,4 +1,4 @@ -/* $OpenBSD: run.c,v 1.77 2023/09/18 19:32:19 millert Exp $ */ +/* $OpenBSD: run.c,v 1.78 2023/09/20 16:49:13 millert Exp $ */ /**************************************************************** Copyright (C) Lucent Technologies 1997 All Rights Reserved @@ -1981,7 +1981,7 @@ static char *nawk_convert(const char *s, int (*fun_c)(int), const char *ps = NULL; size_t n = 0; wchar_t wc; - size_t sz = MB_CUR_MAX; + const size_t sz = awk_mb_cur_max; int unused; if (sz == 1) {