ubi: fix false positive in volume_find
authorDaniel Golle <daniel@makrotopia.org>
Wed, 21 May 2014 02:42:29 +0000 (04:42 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 21 May 2014 02:42:29 +0000 (04:42 +0200)
commitefacbcb4973161c12cc9630d243669845db41a17
tree0899f3c7fb2cfc443e7aed0e8a34eca129f2b5c1
parentf809e352ca1556c4ffc5f40261799db86062d49e
ubi: fix false positive in volume_find

An off-by-one made the string compare check only the string
length and not the terminating \0 which lead to rootfs being
found as rootfs_data.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libfstools/ubi.c