diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-05 21:10:18 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-05 21:10:18 +0800 |
commit | 1a0fc5606804a41bfa34acdc82f7ec43ef3ae933 (patch) | |
tree | b059d036c5cd06d81c1261780714ccd933a82c1c /mbbsd/pmore.c | |
parent | ef6481cca41aca3c247f845ef55a9b2cd491be65 (diff) | |
download | pttbbs-1a0fc5606804a41bfa34acdc82f7ec43ef3ae933.tar pttbbs-1a0fc5606804a41bfa34acdc82f7ec43ef3ae933.tar.gz pttbbs-1a0fc5606804a41bfa34acdc82f7ec43ef3ae933.tar.bz2 pttbbs-1a0fc5606804a41bfa34acdc82f7ec43ef3ae933.tar.lz pttbbs-1a0fc5606804a41bfa34acdc82f7ec43ef3ae933.tar.xz pttbbs-1a0fc5606804a41bfa34acdc82f7ec43ef3ae933.tar.zst pttbbs-1a0fc5606804a41bfa34acdc82f7ec43ef3ae933.zip |
- grayout: check potential (almost impossible) buffer overflow
- pmore: fix message error
- mail: better explain of waterlog re-arrange usage help
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3641 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/pmore.c')
-rw-r--r-- | mbbsd/pmore.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c index 1d619cf8..06226914 100644 --- a/mbbsd/pmore.c +++ b/mbbsd/pmore.c @@ -72,6 +72,8 @@ // ----------------------------------------------------------- <LOCALIZATION> // Messages for localization are listed here. +#define PMORE_MSG_PREF_TITLE \ + " pmore 2007 設定選項 " #define PMORE_MSG_WARN_FAKEUSERINFO \ " ▲此頁內容會依閱\讀者不同,原文未必有您的資料 " #define PMORE_MSG_SEARCH_KEYWORD \ @@ -2302,13 +2304,14 @@ pmore(char *fpath, int promptend) #define PMORE_NOTIFY_NEWPREF #ifdef PMORE_NOTIFY_NEWPREF //let's be backward compatible! - case '\\': - case '|': case 'l': case 'w': case 'W': + + case '|': + case '\\': { - static int notifyChanged = 0; + static char notifyChanged = 0; if (!notifyChanged) { notifyChanged = 1; @@ -2473,7 +2476,7 @@ pmore_Preference() { move(b_lines - 10, 0); clrtobot(); - const char *caption = " pmore 設定選項 "; + const char *caption = PMORE_MSG_PREF_TITLE; // draw separator outs(ANSI_COLOR(1;30)); @@ -2492,7 +2495,7 @@ pmore_Preference() pmore_prefEntry(bpref.wrapmode, "w", 1, "斷行方式:", -1, - "自動斷行\t截行(不自動斷行)"); + "直接截行\t自動斷行"); pmore_prefEntry(bpref.wrapindicator, "m", 1, "斷行符號:", -1, |