diff options
-rw-r--r-- | pttbbs/mbbsd/bbs.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index 7a406834..e39963df 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -1218,8 +1218,11 @@ do_general(int garbage) } while (1); do { - getdata_buf(22, 0, "¼ÐÃD¡G", tmp_title, - DISP_TTLEN + (t_columns - 80), DOECHO); + int w = DISP_TTLEN + (t_columns - 80); + // -4: for prefixes + if (w >= TTLEN - 4) + w = TTLEN - 4; + getdata_buf(22, 0, "¼ÐÃD¡G", tmp_title, w, DOECHO); strip_ansi(tmp_title, tmp_title, STRIP_ALL); if (!is_tn_allowed(tmp_title)) |