From: Dan Carpenter Date: Mon, 19 Jan 2015 19:34:51 +0000 (+0300) Subject: s2io: use snprintf() as a safety feature X-Git-Tag: fixes-v4.0-rc1~271^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8c1d28ac3925b99b5a939617d3fef1644298ee8;p=pandora-kernel.git s2io: use snprintf() as a safety feature "sp->desc[i]" has 25 characters. "dev->name" has 15 characters. If we used all 15 characters then the sprintf() would overflow. I changed the "sprintf(sp->name, "%s Neterion %s"" to snprintf(), as well, even though it can't overflow just to be consistent. Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller --- Reading git-diff-tree failed