summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ufed-curses-checklist.c')
-rw-r--r--ufed-curses-checklist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ufed-curses-checklist.c b/ufed-curses-checklist.c
index 9dff8e2..b77a6f7 100644
--- a/ufed-curses-checklist.c
+++ b/ufed-curses-checklist.c
@@ -286,7 +286,7 @@ static int drawflag(sFlag* flag, bool highlight)
setFlagWrapDraw(flag, idx, &wrapPart, &pos, &length);
// The right side of buf can be added now:
- leftover = rightwidth - (int)length;
+ leftover = rightwidth - (int)length - (newDesc ? 0 : 2) - 1;
pBuf = &buf[minwidth + (newDesc ? 8 : 10)];
sprintf(pBuf, "%-*.*s",
(int)length, (int)length,
@@ -295,7 +295,7 @@ static int drawflag(sFlag* flag, bool highlight)
// Leftover characters on the right must be blanked:
if (leftover > 0)
- sprintf(pBuf + length, "%-*.*s", leftover, leftover, " ");
+ sprintf(pBuf + length, "%-*sX", leftover, " ");
/* Set correct color set according to highlighting and status*/
if(highlight)