Messages in this thread | | | Date | Thu, 27 Nov 2003 02:59:21 -0800 | From | "David S. Miller" <> | Subject | Re: [PATCH 2.6]: IPv6: strcpy -> strlcpy |
| |
On Thu, 27 Nov 2003 17:33:20 +0900 (JST) YOSHIFUJI Hideaki / _$B5HF#1QL@ <yoshfuji@linux-ipv6.org> wrote:
> - strcpy(t->parms.name, dev->name); > + strlcpy(t->parms.name, dev->name, IFNAMSIZ); > sizeof(t->parms.name) > > or something like that.
I agree, using sizeof() is the less error prone way of doing things like this.
Felipe could you please rewrite your patch like this?
Thank you.
- 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/
| |