]> git.baikalelectronics.ru Git - kernel.git/commit
caif: handle snprintf() return
authorDan Carpenter <error27@gmail.com>
Sun, 25 Jul 2010 21:23:59 +0000 (21:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jul 2010 04:05:03 +0000 (21:05 -0700)
commitc3f17cc14c625fa854a52ae8f3a16285196c47e0
tree72637e6bd28dcff682a0b02a0112102523ff4b22
parentab73a8b79617d5b68f537caeb4c52a9031b99d92
caif: handle snprintf() return

snprintf() returns the number of bytes that would have been written.  It
can be larger than the size of the buffer.  The current code won't
overflow, but people cut and paste this stuff so lets do it right and
also make the static checkers happy.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/caif/caif_spi.c