aboutsummaryrefslogtreecommitdiffstats
path: root/src/libdisplay/display_status.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libdisplay/display_status.c')
-rw-r--r--src/libdisplay/display_status.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libdisplay/display_status.c b/src/libdisplay/display_status.c
index c15b88b..5205159 100644
--- a/src/libdisplay/display_status.c
+++ b/src/libdisplay/display_status.c
@@ -37,6 +37,8 @@ static void print_status(int on)
int w, h;
get_win_size(&w, &h);
+ if (w > MAX_DISPLAY_WIDTH - 1)
+ w = MAX_DISPLAY_WIDTH - 1;
if (w > MAX_DISPLAY_WIDTH)
w = MAX_DISPLAY_WIDTH;