]> Pileus Git - ~andy/linux/commit
target/usb-gadget: strlen() doesn't count the terminator
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 2 Oct 2012 08:27:14 +0000 (11:27 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 2 Oct 2012 21:16:21 +0000 (14:16 -0700)
commit232ebe34e1a7827c9ddd4f31e95e21ba498ae52c
treeb2c0246166d9dbff998ae0da442e5049f799351b
parent8ecf595bc2bb468f567eaa4ea5ffbf5d2c871b94
target/usb-gadget: strlen() doesn't count the terminator

We need to take the terminator into consideration here or the last
character gets silently truncated away later.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/usb/gadget/tcm_usb_gadget.c