Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3303719pxv; Mon, 28 Jun 2021 01:16:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXOcY2MU+U23XjQunTU+d5AWAzYruxEk9aCtdiTsIj2O1IaZacmAinqy7IvE8tFfgfj2ct X-Received: by 2002:a5d:8743:: with SMTP id k3mr5153140iol.187.1624868213711; Mon, 28 Jun 2021 01:16:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624868213; cv=none; d=google.com; s=arc-20160816; b=WSbsmFDXn60BXLnLiyQCyRxGyEFvYdtbD8bqDyew9btXwwUztFnGN6XhqUXZiLoXne 5wAzYJnanwSdMgSRkzOaDMw9B0JhXzscoFg43Hp/xt7Q2RA00SdYhLwf+ngK2F8pXP7H 0uKQ1g4zGsKe+nuq8ZBSJV9/fizBBZ81s7JqIhdKFVIHt190sACPZvKwxe/evo5DrIxe 8I2pHSzaucGgwzCLRLwJuorAegzWEzTe5KadTO/+UuUVye36JkPRUbECXJzZ3frmEbbL XEBu5Rb5P/zbtnJSoWGlkp7jxazyrm0GGDB5wWkhDLcNmO30QcOPan+LzAJhYJ9EjHkf 6Axw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=FXKvDq6X4QaoCrNA6jQZKxWF4nuRgoORpCP+szoKXes=; b=CUOTzhRsRRtjs+sBnd0qAqPmi49k9grp+yOz0AVblZuQ7tD//KM7jj2y517t42tgfZ 586upwWMzLA/XtIJo3edCv1V2+hy+hls2DSiAf7eioxFA5MVCB0F/FXbsbkB2O1bYjfw AoZPBiewD2/5iiKIDcW57S7T0cbQfwtZyrlCPKYJaCCH3BCGlmgsxPgU5vjr84AKZDYc /beh1vFRNNavYHPIa8Jueqgkr7lXWCMhiGbvrVO6sb71dwf9BGoZiQZe6g+cjx0Djf2k 7bJrNoAhXG5ZKOwtAElOFTfK/nxdcM9/ctgT7i/DKCWcW65BUv/mjJoc48BfTezeS9Hi XUkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t15si16552636jai.117.2021.06.28.01.16.42; Mon, 28 Jun 2021 01:16:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231725AbhF1ISH (ORCPT + 99 others); Mon, 28 Jun 2021 04:18:07 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.85.151]:32813 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbhF1ISG (ORCPT ); Mon, 28 Jun 2021 04:18:06 -0400 Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-160-2pjBT2hzNWWe7pI_mruhNQ-1; Mon, 28 Jun 2021 09:15:38 +0100 X-MC-Unique: 2pjBT2hzNWWe7pI_mruhNQ-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 28 Jun 2021 09:15:38 +0100 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.018; Mon, 28 Jun 2021 09:15:38 +0100 From: David Laight To: "'Alejandro Colomar (man-pages)'" , glibc CC: "tech@openbsd.org" , Christoph Hellwig , "linux-kernel@vger.kernel.org" Subject: RE: [RFC] strcpys(): New function for copying strings safely Thread-Topic: [RFC] strcpys(): New function for copying strings safely Thread-Index: AQHXa40prEqUpDaQkE64wDC5dyLrNKspEcOg Date: Mon, 28 Jun 2021 08:15:38 +0000 Message-ID: References: <755875ec-baae-6cab-52a8-3c9530db1ce6@gmail.com> <38428d5e-ead2-bf18-e198-cecd4caeb3e7@gmail.com> In-Reply-To: <38428d5e-ead2-bf18-e198-cecd4caeb3e7@gmail.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogQWxlamFuZHJvIENvbG9tYXINCj4gU2VudDogMjcgSnVuZSAyMDIxIDIwOjQ3DQo+IA0K PiBPbiA2LzI3LzIxIDk6MjYgUE0sIEFsZWphbmRybyBDb2xvbWFyIChtYW4tcGFnZXMpIHdyb3Rl Og0KPiA+DQo+ID4gSXQgaXMgZGVzaWduZWQgc28gdGhhdCB1c2FnZSByZXF1aXJlcyB0aGUgbWlu aW11bSBudW1iZXIgb2YgbGluZXMgb2YNCj4gPiBjb2RlIGZvciBjb21wbGV0ZSB1c2FnZSAoaW5j bHVkaW5nIGVycm9yIGhhbmRsaW5nIGNoZWNrcyk6DQo+ID4NCj4gPiBbWw0KPiA+IC8vIFdoZW4g d2UgYW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