Re: [v4l-dvb-maintainer] Re: [PATCH] new driver for TLV320AIC23B

From: Johannes Stezenbach
Date: Wed May 10 2006 - 19:43:25 EST


On Thu, May 11, 2006 at 02:32:12AM +0400, Alexey Dobriyan wrote:
> On Wed, May 10, 2006 at 02:55:28PM -0700, Scott Alfter wrote:
>
> > + snprintf(client->name, sizeof(client->name) - 1, "tlv320aic23b");
>
> snprintf(buf, sizeof(buf), ...)
>
> is idiomatic.

better use strlcpy()

Johannes
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/