diff options
Diffstat (limited to 'mbbsd/menu.c')
-rw-r--r-- | mbbsd/menu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/menu.c b/mbbsd/menu.c index e9ee4dfe..49c0dab4 100644 --- a/mbbsd/menu.c +++ b/mbbsd/menu.c @@ -88,7 +88,7 @@ showtitle(const char *title, const char *mid) /* now, calculate real positioning info */ if(llen < 0) llen = strlen(title); if(mlen < 0) mlen = strlen(mid); - mpos = (t_columns - mlen)/2; + mpos = (t_columns -1 - mlen)/2; /* first, print left. */ clear(); @@ -104,7 +104,7 @@ showtitle(const char *title, const char *mid) outs(TITLE_COLOR); /* try to locate right */ rlen = strlen(currboard) + 4 + 4; - if(currboard[0] && pos+rlen <= t_columns) + if(currboard[0] && pos+rlen < t_columns) { // print right stuff while(++pos < t_columns-rlen) |