summaryrefslogtreecommitdiff
path: root/tests/ubi-tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ubi-tests')
-rw-r--r--tests/ubi-tests/io_update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ubi-tests/io_update.c b/tests/ubi-tests/io_update.c
index 7040e6a..fe3ad7b 100644
--- a/tests/ubi-tests/io_update.c
+++ b/tests/ubi-tests/io_update.c
@@ -147,7 +147,7 @@ static int test_update1(struct ubi_vol_info *vol_info, int leb_change)
rnd_len = rand() % (l + 1);
for (n = 0; n < rnd_len; n++)
buf[off + n] = (unsigned char)rand();
- memset(buf + off + rnd_len, 0xFF, l - rnd_len);
+ memset(buf + off + rnd_len, 0xFF, l - rnd_len);
/*
* Deliberately pass len instead of l (len may be