From 6df3d70406e4b821995dd51f4d5adae2525cd0bf Mon Sep 17 00:00:00 2001 From: jpo Date: Mon, 23 Oct 1995 13:38:51 +0000 Subject: [PATCH] use MB_LEN_MAX instead of MB_CUR_MAX for array declaration, because MB_CUR_MAX may be a non-constant expression --- usr.bin/xlint/lint1/scan.l | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/xlint/lint1/scan.l b/usr.bin/xlint/lint1/scan.l index 642671201c0e..5e23c6b6b4b8 100644 --- a/usr.bin/xlint/lint1/scan.l +++ b/usr.bin/xlint/lint1/scan.l @@ -1,5 +1,5 @@ %{ -/* $NetBSD: scan.l,v 1.7 1995/10/02 17:29:59 jpo Exp $ */ +/* $NetBSD: scan.l,v 1.8 1995/10/23 13:38:51 jpo Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$NetBSD: scan.l,v 1.7 1995/10/02 17:29:59 jpo Exp $"; +static char rcsid[] = "$NetBSD: scan.l,v 1.8 1995/10/23 13:38:51 jpo Exp $"; #endif #include @@ -741,7 +741,7 @@ ccon() static int wccon() { - static char buf[MB_CUR_MAX + 1]; + static char buf[MB_LEN_MAX + 1]; int i, c; wchar_t wc;