diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-11 10:00:31 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-11 10:00:31 +0800 |
commit | e7fef1f83a6c2f397dacc520a07d8578d2551b44 (patch) | |
tree | 9874ed554b03c4d47636b9f670f7de366a553eec /mbbsd/menu.c | |
parent | a76ca91e320884b3b4ef1a9f6bb538ae10850583 (diff) | |
download | pttbbs-e7fef1f83a6c2f397dacc520a07d8578d2551b44.tar pttbbs-e7fef1f83a6c2f397dacc520a07d8578d2551b44.tar.gz pttbbs-e7fef1f83a6c2f397dacc520a07d8578d2551b44.tar.bz2 pttbbs-e7fef1f83a6c2f397dacc520a07d8578d2551b44.tar.lz pttbbs-e7fef1f83a6c2f397dacc520a07d8578d2551b44.tar.xz pttbbs-e7fef1f83a6c2f397dacc520a07d8578d2551b44.tar.zst pttbbs-e7fef1f83a6c2f397dacc520a07d8578d2551b44.zip |
- chicken: disable selling
- menu: fix 80-width titles
- bbslua: return empty string instead of nil for getdata()
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3820 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
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) |