Messages in this thread | | | Date | Thu, 27 Nov 2003 09:21:26 -0500 | From | David Roundy <> | Subject | Re: [PATCH 2.6]: IPv4: strcpy -> strlcpy |
| |
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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |