Message ID | 20230621213444.2017-4-cristian@rodriguez.im |
---|---|
State | New |
Headers | show
Return-Path: <libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org> 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=<UNKNOWN>) 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 <incoming@patchwork.ozlabs.org>; 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 <incoming@patchwork.ozlabs.org>; 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 <libc-alpha@sourceware.org>; 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 <libc-alpha@sourceware.org>; 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?= <cristian@rodriguez.im> 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: =?utf-8?q?Cristian_Rodr=C3=ADguez_via_Libc-alpha?= <libc-alpha@sourceware.org> Reply-To: =?utf-8?q?Cristian_Rodr=C3=ADguez?= <cristian@rodriguez.im> Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org> |
Series |
None
|
expand
|
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;
Signed-off-by: Cristian RodrÃguez <cristian@rodriguez.im> --- stdio-common/reg-modifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)