[PATCH] Set major,minor buffers to 13 character to hold largest values Need 4 for major, 7 for minor, 1 for the separator plus 1 for the terminator. Signed-off-by: Alan D. Brunelle --- lib/libdm-deptree.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libdm-deptree.c b/lib/libdm-deptree.c index c73ed50..a437311 100644 --- a/lib/libdm-deptree.c +++ b/lib/libdm-deptree.c @@ -1243,7 +1243,7 @@ static int _emit_areas_line(struct dm_task *dmt __attribute((unused)), size_t paramsize, int *pos) { struct seg_area *area; - char devbuf[10]; + char devbuf[13]; int tw; const char *prefix = ""; @@ -1270,7 +1270,7 @@ static int _emit_segment_line(struct dm_task *dmt, struct load_segment *seg, uin int pos = 0; int tw; int r; - char originbuf[10], cowbuf[10], logbuf[10]; + char originbuf[13], cowbuf[13], logbuf[13]; const char *logtype; switch(seg->type) { -- 1.5.4.3