target: change sprintf to snprintf in transport_dump_vpd_ident
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 18 Jan 2013 13:05:12 +0000 (16:05 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 13 Feb 2013 19:27:31 +0000 (11:27 -0800)
commit703d641d87034629f8b0da94334034ed5d805b36
tree6697505c60330ca106b936797b01d1b793163424
parent8f67835f1e389978bb0809d5e528961986aa2a69
target: change sprintf to snprintf in transport_dump_vpd_ident

"buf" is 128 characters and "vpd->device_identifier" is 256.  It makes
the static checkers complain.

Also bump VPD_TMP_BUF_SIZE to match INQUIRY_VPD_DEVICE_IDENTIFIER_LEN.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c
include/target/target_core_base.h