From patchwork Wed Jun 21 21:34:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Cristian_Rodr=C3=ADguez?= X-Patchwork-Id: 1798126 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=vXA9bmpd; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QmcHG3smKz20Xk for ; Thu, 22 Jun 2023 07:35:22 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 682353857714 for ; Wed, 21 Jun 2023 21:35:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 682353857714 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1687383320; bh=TPT5Dw3ksr5W0nkahuFQtrmgK3M3DhQIOHT/e5gsIsQ=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=vXA9bmpdZR2ZJjTqYAhSz/tfRhzu5xw6cLtSRrrDU7G1zJV3ZdWxsgSRV9qi1HI0c gwJfXC3athciJ/WQGrUMotpXYc0lvgzyg+t58nzqZ3UZyz2kGIec6QJiLeyr6Ps2R1 RuIBItv5sYhTCQ1Yq21pRSCFE8wA2uVgp3u29+rY= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by sourceware.org (Postfix) with ESMTPS id C2DAE3858C1F for ; Wed, 21 Jun 2023 21:35:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C2DAE3858C1F Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-39ea3943c07so474544b6e.1 for ; Wed, 21 Jun 2023 14:35:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687383303; x=1689975303; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TPT5Dw3ksr5W0nkahuFQtrmgK3M3DhQIOHT/e5gsIsQ=; b=KjMOVbmmCkoQ9fn3vOgBaH5jAf4nWlMVC1n74YEFC7kZWY9cO4QFjhNG2kOr5uG4OO 8LCy96c3SP0jdIUe6+pudP1Kh480OZEnHlemgZPVO2LQmiboqlzSANUa3Z08KhpZ+Ugv xOdE5XnFyGfm2MuN5kUJqn4uUPoy6I+qM45AyeumRp4zop922YCt/AzjCb+QpBXn4KT/ BFWl0V8+6S0+58jV4joVKK5oWwFjHFji4tYBiiAecbGdLmcB8AXforzEAkKaZJgMKIkS ZiH68N3ISNWgcu5CrpPmMqDPOzcwpPjMdowBWnyOjAXO9nux8kLu9ybyHr+yBwo8uzgV Wzeg== X-Gm-Message-State: AC+VfDxr1xPMr9h8XC+j2QW3FcyzsTmkhJirqMvNc/3db/oCmMqiJxWK mVs8yAx+Nl/oIcAPkse6K3LBOK6Nk4q0FsB9jG8= X-Google-Smtp-Source: ACHHUZ6ZYFmbkfGscVOH7eyAX7uCU9OVLECUXZhDIQ+DBwY80mf9VFR9U2W2VFUhM7DMp2yjvYiRqA== X-Received: by 2002:aca:b9d7:0:b0:398:99e7:b08 with SMTP id j206-20020acab9d7000000b0039899e70b08mr13860531oif.5.1687383303019; Wed, 21 Jun 2023 14:35:03 -0700 (PDT) Received: from tumbleweedvm.. (181-162-15-197.baf.movistar.cl. [181.162.15.197]) by smtp.gmail.com with ESMTPSA id a8-20020a056808128800b0039ed142bf3asm2533825oiw.53.2023.06.21.14.35.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jun 2023 14:35:02 -0700 (PDT) To: libc-alpha@sourceware.org Cc: =?utf-8?q?Cristian_Rodr=C3=ADguez?= Subject: [PATCH 5/5] stdio-common: Replace zero-length array with flexible-array member Date: Wed, 21 Jun 2023 21:34:33 +0000 Message-ID: <20230621213444.2017-4-cristian@rodriguez.im> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230621213444.2017-1-cristian@rodriguez.im> References: <20230621213444.2017-1-cristian@rodriguez.im> MIME-Version: 1.0 X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_WEB, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?Cristian_Rodr=C3=ADguez_via_Libc-alpha?= From: =?utf-8?q?Cristian_Rodr=C3=ADguez?= Reply-To: =?utf-8?q?Cristian_Rodr=C3=ADguez?= Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" Signed-off-by: Cristian Rodríguez --- stdio-common/reg-modifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdio-common/reg-modifier.c b/stdio-common/reg-modifier.c index a52022d1ba..d957d85a5f 100644 --- a/stdio-common/reg-modifier.c +++ b/stdio-common/reg-modifier.c @@ -27,7 +27,7 @@ struct printf_modifier_record { struct printf_modifier_record *next; int bit; - wchar_t str[0]; + wchar_t str[]; }; struct printf_modifier_record **__printf_modifier_table attribute_hidden;