Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
partitions/aix: append null character to print data from disk
Even if properly initialized, the lvname array (i.e., strings) is read from disk, and might contain corrupt data (e.g., lack the null terminating character for strings). So, make sure the partition name string used in pr_warn() has the null terminating character. Fixes: 6ceea22 ("partitions: add aix lvm partition support files") Suggested-by: Daniel J. Axtens <[email protected]> Signed-off-by: Mauricio Faria de Oliveira <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information