From: David Roundy <droundy@abridgegame.org>
To: Linux Kernel Mailinglist <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2.6]: IPv4: strcpy -> strlcpy
Date: Thu, 27 Nov 2003 09:21:26 -0500 [thread overview]
Message-ID: <20031127142125.GG8276@jdj5.mit.edu> (raw)
In-Reply-To: <1069941882.1680.2.camel@teapot.felipe-alfaro.com>
On Thu, Nov 27, 2003 at 03:04:42PM +0100, Felipe Alfaro Solana wrote:
> diff -uNr linux-2.6.0-test11.orig/net/core/dev.c linux-2.6.0-test11/net/core/dev.c
> +++ linux-2.6.0-test11/net/core/dev.c 2003-11-27 13:21:12.791315993 +0100
> @@ -335,7 +335,7 @@
> for (i = 0; i < NETDEV_BOOT_SETUP_MAX; i++) {
> if (s[i].name[0] == '\0' || s[i].name[0] == ' ') {
> memset(s[i].name, 0, sizeof(s[i].name));
> - strcpy(s[i].name, name);
> + strlcpy(s[i].name, name, sizeof(s[i].map));
^^^
I believe this should be name.
--
David Roundy
http://www.abridgegame.org
next prev parent reply other threads:[~2003-11-27 14:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-27 14:04 [PATCH 2.6]: IPv4: strcpy -> strlcpy Felipe Alfaro Solana
2003-11-27 14:21 ` David Roundy [this message]
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
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=20031127142125.GG8276@jdj5.mit.edu \
--to=droundy@abridgegame.org \
--cc=linux-kernel@vger.kernel.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).