[PATCH] fix spurious gcc warnings
Christoph Hellwig
hch at infradead.org
Fri Nov 21 17:12:14 CST 2008
On Fri, Nov 21, 2008 at 06:09:48PM -0500, Josef 'Jeff' Sipek wrote:
> > for (i=j=len = 0; i < ARRAY_SIZE(xstats); i++) {
> > - len += sprintf(buffer + len, xstats[i].desc);
> > + len += sprintf(buffer + len, "%s", xstats[i].desc);
>
> Why not use strcpy here?
I applies the principle of minimal change. strcpy would work, too and
be a tidbit more efficient.
More information about the xfs
mailing list