Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11154709ybi; Thu, 25 Jul 2019 10:57:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVjkZs29Hc43MIYdx5oVbZgRFTJlajy3XkW6bN8n/sPcFiQqqrShXmaykzkFuNaQ9aQwT6 X-Received: by 2002:a17:902:684:: with SMTP id 4mr92357919plh.138.1564077441495; Thu, 25 Jul 2019 10:57:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564077441; cv=none; d=google.com; s=arc-20160816; b=nsMNvDVq8ECMWxvuCNcs0QSRA2tNLDO9Mjy2oYVfqu4Z4oBU+96LpfJQo+D9R3n/Dr uezNj8/iG7gKn1yoXv4jpH619NL02M8EWWcPcm/dec/E8Uap0esDUuvpHltFVseQny0R HK60ToeQp15RoigqvzNezJUE7+AWwBPHwgqONHBh95+EfeCVkI2+rAZNRWeba1ZfhIvB eI9XQ+QS/tsll3+DDvSH6A8vd+qfGb8Ln42oJ8W+ZVV26v42jqgJcHAP9vDmclUJaT04 iRNV/g9gX8grkasfWll4tyg/F30JWx8gbyCdU48sGvVeSpn9xBVwd7n8AbTzeAaaZuXg ip3A== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=BhxA9hodLf/YPSrXLE8VTCNB5WpGR+VjtXorO/UZqPk=; b=zblww+Cvz8NNVqzr1/HTFbpQXX2nNIdtprSj+fbVGRdfjJ5hY71zeMsvS9PLzXlFY3 tJ2ZGDeo1PJlrLxcqhxNt54sWpXcfLKDKb8QN2vXZvz6qWRMm5rcG7dC4kCjXQ8NN3JI 9LWEEZshcIbvggXHsZrg5R7XTm3PfNCH3UgJPE43Xe0NB5IQwuZz6aGTBpnpHFoqo4se h0qw/3qNUwlnmog9OOrEASePVsqDW5AXg9TvVKAzCKN1QIeMdoInXDkrX7jlu14CwX8n absj4WQU+L2JU5AlBmWZ3EuCIwswTr97R3DIpfpIuJhZXKvZM9lce85uOdwi+/B6JovW 81CQ== 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 v20si17438477pjn.27.2019.07.25.10.57.06; Thu, 25 Jul 2019 10:57:21 -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 S1727632AbfGYOM6 (ORCPT + 99 others); Thu, 25 Jul 2019 10:12:58 -0400 Received: from smtprelay0139.hostedemail.com ([216.40.44.139]:43583 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725843AbfGYOM6 (ORCPT ); Thu, 25 Jul 2019 10:12:58 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 10C05100E96EA; Thu, 25 Jul 2019 14:12:57 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3871:3874:4321:4362:5007:6117:10004:10400:10848:11232:11658:11914:12297:12740:12760:12895:13069:13311:13357:13439:14659:21080:21324:21627:30054:30070:30090:30091,0,RBL:23.242.196.136:@perches.com:.lbl8.mailshell.net-62.8.0.180 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: army43_8e08c24f85a19 X-Filterd-Recvd-Size: 2302 Received: from XPS-9350.home (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf09.hostedemail.com (Postfix) with ESMTPA; Thu, 25 Jul 2019 14:12:55 +0000 (UTC) Message-ID: Subject: Re: [Fwd: [PATCH 1/2] string: Add stracpy and stracpy_pad mechanisms] From: Joe Perches To: Julia Lawall Cc: David Laight , cocci , LKML Date: Thu, 25 Jul 2019 07:12:54 -0700 In-Reply-To: References: <7ab8957eaf9b0931a59eff6e2bd8c5169f2f6c41.1563841972.git.joe@perches.com> <66fcdbf607d7d0bea41edb39e5579d63b62b7d84.camel@perches.com> <0f3ba090dfc956f5651e6c7c430abdba94ddcb8b.camel@perches.com> <563222fbfdbb44daa98078db9d404972@AcuMS.aculab.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.5-0ubuntu0.18.10.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2019-07-25 at 08:58 -0500, Julia Lawall wrote: > On Thu, 25 Jul 2019, Joe Perches wrote: [] > > Just for completeness and correctness, as I at > > least don't find an existing use: > > > > Perhaps this "x =" should also include += and + > > and the various other operators that are possible > > or does SmPL grammar already do that? > > I could do this. One might though think that if someone went to the > trouble of computing +=, these would be cases that we don't want to > change? Maybe I quoted the wrong bit. But exactly. Anywhere the return value of strlcpy is used, not just as an assignment, is an instance that should not be changed. Thanks for doing this.