From 3bea139a16a8fa5dfcfa73a50570f9359b708466 Mon Sep 17 00:00:00 2001 From: Hornos Date: Sat, 6 May 2023 03:04:26 +0000 Subject: [PATCH] =?UTF-8?q?update=20scripts/kconfig/preprocess.c.=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=95=B0=E7=BB=84=E6=BA=A2=E5=87=BA=E6=BC=8F?= =?UTF-8?q?=E6=B4=9E=20=E4=BF=AE=E5=A4=8D=E4=BA=86preprocess.c=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2=E8=A7=A3=E6=9E=90=E6=97=B6=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E4=BA=A7=E7=94=9F=E7=9A=84=E6=95=B0=E7=BB=84=E6=BA=A2=E5=87=BA?= =?UTF-8?q?=E6=BC=8F=E6=B4=9E=EF=BC=8C=E7=BB=BC=E5=90=88=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=B8=8A=E4=B8=8B=E6=96=87=E5=88=86=E6=9E=90=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=90=8E=E5=8F=91=E7=8E=B0=EF=BC=8C=E8=AF=A5=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2=E8=A7=A3=E6=9E=90=E7=9A=84=E7=BB=93=E6=9E=9C=E6=9C=80?= =?UTF-8?q?=E7=BB=88=E5=BA=94=E8=AF=A5=E4=BF=9D=E8=AF=81*new=5Fargv[new=5F?= =?UTF-8?q?argc]=3D'\0'=EF=BC=8C=E5=8D=B3=E8=8B=A5=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E8=8E=B7=E5=BE=97x=E4=B8=AA=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=EF=BC=8C=E5=88=99new=5Fargv=E4=B8=AD=E8=BF=99x=E4=B8=AA?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2=E5=90=8E=E9=9D=A2=E7=9A=84=E5=85=83?= =?UTF-8?q?=E7=B4=A0=E5=BF=85=E7=84=B6=E9=9C=80=E8=A6=81=E4=B8=BA=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E6=8C=87=E5=90=91=E7=A9=BA=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=E7=9A=84=E6=8C=87=E9=92=88=E3=80=82=E5=9C=A8=E7=AC=AC384?= =?UTF-8?q?=E8=A1=8C=E5=B0=86=E5=88=A4=E6=96=AD=E6=9D=A1=E4=BB=B6=E4=BB=8E?= =?UTF-8?q?>=3DFUNCTION=5FMAX=5FARGS=E6=94=B9=E6=88=90>=3DFUNCTION=5FMAX?= =?UTF-8?q?=5FARGS-1=E5=8F=AF=E4=BB=A5=E9=98=B2=E6=AD=A2=E5=BD=93=E8=A7=A3?= =?UTF-8?q?=E6=9E=90=E8=8E=B7=E5=BE=97=E7=9A=84=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E4=B8=BA16=E6=97=B6=E5=9C=A8396=E8=A1=8C?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E4=BA=A7=E7=94=9F=E7=9A=84=E6=95=B0=E7=BB=84?= =?UTF-8?q?=E6=BA=A2=E5=87=BA=E9=97=AE=E9=A2=98=EF=BC=8C=E5=8D=B3=E8=BF=99?= =?UTF-8?q?=E9=87=8C=E8=A7=A3=E6=9E=90=E5=87=BA=E6=9D=A5=E7=9A=84=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2=E6=9C=80=E5=A4=9A=E5=8F=AA=E8=83=BD=E4=B8=BA?= =?UTF-8?q?15=E4=B8=AA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hornos --- scripts/kconfig/preprocess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kconfig/preprocess.c b/scripts/kconfig/preprocess.c index 5ca2df790d3c..af85268c1220 100644 --- a/scripts/kconfig/preprocess.c +++ b/scripts/kconfig/preprocess.c @@ -381,7 +381,7 @@ static char *eval_clause(const char *str, size_t len, int argc, char *argv[]) while (*p) { if (nest == 0 && *p == ',') { *p = 0; - if (new_argc >= FUNCTION_MAX_ARGS) + if (new_argc >= FUNCTION_MAX_ARGS - 1) pperror("too many function arguments"); new_argv[new_argc++] = prev; prev = p + 1; -- Gitee