aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Brown2016-09-30 09:14:04 -0700
committerMark Brown2016-09-30 09:14:04 -0700
commit07216b5503f328b756b5f06da9908ce5f404d1e6 (patch)
tree6bbb0456db8a056b2129fd0bfa43facd867345b2
parent08895a8b6b06ed2323cd97a36ee40a116b3db8ed (diff)
parent0278b34bf15f8d8a609595b15909cd8622dd64ca (diff)
Merge remote-tracking branch 'spi/fix/spidev' into spi-linus
-rw-r--r--tools/spi/spidev_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/spi/spidev_test.c b/tools/spi/spidev_test.c
index 8a73d8185316..f3825b676e38 100644
--- a/tools/spi/spidev_test.c
+++ b/tools/spi/spidev_test.c
@@ -284,7 +284,7 @@ static void parse_opts(int argc, char *argv[])
static void transfer_escaped_string(int fd, char *str)
{
- size_t size = strlen(str + 1);
+ size_t size = strlen(str);
uint8_t *tx;
uint8_t *rx;