linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: Felipe Alfaro Solana <felipe_alfaro@linuxmail.org>
Cc: Timo Kamph <timo@kamph.org>,
	Linux Kernel Mailinglist <linux-kernel@vger.kernel.org>,
	netdev@oss.sgi.com, davem@redhat.com
Subject: Re: [PATCH 2.6]: IPv4: strcpy -> strlcpy
Date: Fri, 28 Nov 2003 09:42:18 +0000	[thread overview]
Message-ID: <1070012538.10048.13.camel@hades.cambridge.redhat.com> (raw)
In-Reply-To: <1069970946.2138.13.camel@teapot.felipe-alfaro.com>

On Thu, 2003-11-27 at 23:09 +0100, Felipe Alfaro Solana wrote:
> On Thu, 2003-11-27 at 21:48, Timo Kamph wrote:
> 
> > > +	strlcpy(label->label, name, sizeof(label->name));
> >                                                                        ^^^^^^
> > I guess this shoud be label->label, or am I wrong?
> 
> Oh my god! Two consecutive mistakes with the same patch! I should have
> some sleep... Here's the one with the typo corrected.

Perhaps we should consider

#define strsizecpy(x, y) strlcpy((x), (y), sizeof(x))

-- 
dwmw2


  parent reply	other threads:[~2003-11-28  9:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-27 14:04 Felipe Alfaro Solana
2003-11-27 14:21 ` David Roundy
2003-11-27 15:25   ` Felipe Alfaro Solana
2003-11-27 20:48     ` Timo Kamph
2003-11-27 22:09       ` Felipe Alfaro Solana
2003-11-28  2:05         ` YOSHIFUJI Hideaki / 吉藤英明
2003-11-28  9:42         ` David Woodhouse [this message]
2003-11-30 10:26           ` Ingo Oeser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1070012538.10048.13.camel@hades.cambridge.redhat.com \
    --to=dwmw2@infradead.org \
    --cc=davem@redhat.com \
    --cc=felipe_alfaro@linuxmail.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@oss.sgi.com \
    --cc=timo@kamph.org \
    --subject='Re: [PATCH 2.6]: IPv4: strcpy -> strlcpy' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).