artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1070222
)
Use awk_mb_cur_max in nawk_convert() instead of MB_CUR_MAX.
author
millert
<millert@openbsd.org>
Wed, 20 Sep 2023 16:49:13 +0000
(16:49 +0000)
committer
millert
<millert@openbsd.org>
Wed, 20 Sep 2023 16:49:13 +0000
(16:49 +0000)
usr.bin/awk/run.c
patch
|
blob
|
history
diff --git
a/usr.bin/awk/run.c
b/usr.bin/awk/run.c
index
d6920fa
..
436b6c7
100644
(file)
--- a/
usr.bin/awk/run.c
+++ b/
usr.bin/awk/run.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: run.c,v 1.7
7 2023/09/18 19:32:19
millert Exp $ */
+/* $OpenBSD: run.c,v 1.7
8 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) {