Re: [patch] [SCSI] aacraid: use lower snprintf() limit
From: Dan Carpenter
Date: Thu Oct 06 2011 - 10:34:11 EST
On Wed, Oct 05, 2011 at 05:19:12AM -0700, Achim Leubner wrote:
> Looks good so far. But do we really need the last two lines?
> > + if (len > 16)
> > + len = 16;
snprintf() returns the number of characters that it _would_ have
copied if it had space. We want to return the number of bytes
Again, the snprintf() values do fit so this change doesn't actually
make any difference.
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/