Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2330812ybi; Thu, 20 Jun 2019 13:10:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQS2FAQVJuHckojHizPZmCBDRkS7hOOF13rUa+4+VQ16XGiu3dX+EKS9JQDFR1V4gqSmOK X-Received: by 2002:a17:902:ac81:: with SMTP id h1mr4328071plr.171.1561061411997; Thu, 20 Jun 2019 13:10:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561061411; cv=none; d=google.com; s=arc-20160816; b=iv87LkEJMtZmE4nIvx6tc+2Af60LbNyv64t+do/fgqJxhNAhMVyTd7UPgMFOicpWgq YF33FXc1R5Z6pf313Vnq6RFh7MZX8YPfojzElZhTevMtga+8RlW67IDGN6D40t9nClWV /AAWCa+RaQxauVldk5t/s1jQPZ3Use1RF7LjAc0nzgVLn5Y+cKiay5EaMaMEgTo0VXd+ f39069rBEHaso4g5Ro2mnrxepvrDC1fcO60Rh0M8/a0AQ5qHyGEioMt8gbKVR4w6V0PQ XU9Vnw6dXzATSOuXcWIp4thHxgXtuqqSzz6R3/LWKdIw3NkUqNky9A7PAcQa9OQfbhqN 4Ysw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=Js5/hveueg/66XmvdBrGm/xV37Br3qT/YcSxjtVvD14=; b=MYBzKzCuMSSPC7ghxN424CbZL7RcFbWS3IDf9MEwq9XV5GyUJ18Yc/yPTthcOTCbtc BabIQAPUFbAafeVafdbvKfbl9EJ1qsfr49kVBlvEZCk3FSFUP3paFqL19FknWT0Tp9VL DawaqM1tDrzuK4QzwPs2CDDhhBNFJ1InTRbjPJSjp54Ty5/61+yM8XVZwOPxOWH6NSCr ooabU2Uspqd34kKt6+cPMGVqH4/UMu5ZTdi411YP+IG6fs/+INWQR2x/QyxsFPR0wbc4 4tpxYVJvYLwDQcHpSl3WN3qw2YX1u/dSSax66spU0rle1NFRAohGyaIbpjOgUDI1rU8t Mz3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3si582015plc.132.2019.06.20.13.09.56; Thu, 20 Jun 2019 13:10:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726818AbfFTUJj (ORCPT + 99 others); Thu, 20 Jun 2019 16:09:39 -0400 Received: from ms.lwn.net ([45.79.88.28]:47614 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbfFTUJj (ORCPT ); Thu, 20 Jun 2019 16:09:39 -0400 Received: from lwn.net (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 07FB72BA; Thu, 20 Jun 2019 20:09:38 +0000 (UTC) Date: Thu, 20 Jun 2019 14:09:37 -0600 From: Jonathan Corbet To: Stephen Kitt Cc: federico.vaga@vaga.pv.it, linux-doc@vger.kernel.org, keescook@chromium.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] docs: stop suggesting strlcpy Message-ID: <20190620140937.16c12e94@lwn.net> In-Reply-To: <20190613162548.19792-1-steve@sk2.org> References: <20190613162548.19792-1-steve@sk2.org> Organization: LWN.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 13 Jun 2019 18:25:48 +0200 Stephen Kitt wrote: > Since strlcpy is deprecated, the documentation shouldn't suggest using > it. This patch fixes the examples to use strscpy instead. It also uses > sizeof instead of underlying constants as far as possible, to simplify > future changes to the corresponding data structures. > > Signed-off-by: Stephen Kitt Applied, thanks. jon