On Fri, 21 Apr 2006 14:02:54 -0700, Stephen Hemminger wrote:
> On Fri, 21 Apr 2006 22:53:29 +0200 (CEST)
> Jiri Benc <[EMAIL PROTECTED]> wrote:
> > -   memcpy(mdev->name, "wlan%d", 7);
> > +   memcpy(mdev->name, "wmaster%d", 10);
> 
> Why not use strlcpy or strncpy?  and use sizeof(mdev->name) or IFNAMSIZ
> rather than hard coded 10.

Good idea :-) Will fix it, thanks.

 Jiri

-- 
Jiri Benc
SUSE Labs
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to