From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Tue, 09 Mar 2004 19:51:23 +0000 Subject: Re: [PATCH] rename strn*() macros to strmax Message-Id: <20040309195123.GA8056@kroah.com> List-Id: References: <20040304210857.GA17140@vrfy.org> In-Reply-To: <20040304210857.GA17140@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, Mar 04, 2004 at 10:08:57PM +0100, Kay Sievers wrote: > Hey, I wrote the strn*() macros just 10 days ago and yesterday this trap > caught me with the %c{x} bug. > The names are misleading cause we all expect that the from field is limited by > the size argument, but we actually limit the overall size of the destination > string to prevent a overflow. > > Here we rename all strn*() macros to str*max(). That should be > more self-explanatory. Applied, thanks. greg k-h ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel