Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/sysfs: zero-terminate result of sysfs_blkdev_get_devchain()
sysfs_blkdev_get_devchain() does not zero-terminate its result, but the caller expects a C-string. Use ul_buffer_get_string() which includes a trailing zero-byte. Now it's also valid for sz and bufsz to be equal. See #3088. Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
- Loading branch information