Subject: Re: [PATCH] powerpc: Add of_register_i2c_devices()

From: Scott Wood <[email-masked]>
Date: Wed, 01 Aug 2007 15:42:24 -0500

Guennadi Liakhovetski wrote:
> And the only safe way is 
> 	strncpy(z.c, c, 3);
> 	z.c[3] = '\0';
> with compilers < 4.2?...

You could use strlcpy() instead, which always leaves a zero terminator.

-Scott