diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-09-11 15:16:49 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-09-11 15:16:49 +0800 |
commit | 3e667e8bf274223b49012acc74707b3651668fe3 (patch) | |
tree | 3a89166476349056e32a285c3054b9704f95d5f9 /mbbsd/board.c | |
parent | f190a09af728c61ad2118cf908c6d831e8a594cf (diff) | |
download | pttbbs-3e667e8bf274223b49012acc74707b3651668fe3.tar pttbbs-3e667e8bf274223b49012acc74707b3651668fe3.tar.gz pttbbs-3e667e8bf274223b49012acc74707b3651668fe3.tar.bz2 pttbbs-3e667e8bf274223b49012acc74707b3651668fe3.tar.lz pttbbs-3e667e8bf274223b49012acc74707b3651668fe3.tar.xz pttbbs-3e667e8bf274223b49012acc74707b3651668fe3.tar.zst pttbbs-3e667e8bf274223b49012acc74707b3651668fe3.zip |
not only long screen, but also width screen
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@518 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r-- | mbbsd/board.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index bd8e562e..368241fb 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -1,4 +1,4 @@ -/* $Id: board.c,v 1.57 2002/08/20 17:19:11 in2 Exp $ */ +/* $Id: board.c,v 1.58 2002/09/11 07:16:49 kcwu Exp $ */ #include "bbs.h" #define BRC_STRLEN 15 /* Length of board name */ #define BRC_MAXSIZE 24576 @@ -648,10 +648,11 @@ show_brdlist(int head, int clsflag, int newflag) prints("%2d ", ptr->bh->nuser); else prints(" %c ", ptr->bh->bvote ? 'V' : ' '); - prints("%.13s", ptr->bh->BM); + prints("%.*s", t_columns - 67, ptr->bh->BM); refresh(); } else { - prints("%-40.40s %.13s", ptr->bh->title + 7, ptr->bh->BM); + prints("%-40.40s %.*s", ptr->bh->title + 7, + t_columns - 67, ptr->bh->BM); } } clrtoeol(); |