From: Nicholas Bellinger Date: Wed, 27 Jul 2011 19:37:03 +0000 (-0700) Subject: iscsi-target: Fix snprintf usage with MAX_PORTAL_LEN X-Git-Tag: v3.1-rc1~41^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bbb654e9c77a8692425dbd2c704ad245b86ec8a;p=pandora-kernel.git iscsi-target: Fix snprintf usage with MAX_PORTAL_LEN This patch makes lio_target_call_addnptotpg() use sprintf() with MAX_PORTAL_LEN + 1 to address the following smatch warning: drivers/target/iscsi/iscsi_target_configfs.c +184 lio_target_call_addnptotpg(21) error: snprintf() chops off the last chars of 'name': 257 vs 256 Reported-by: Dan Carpenter Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed