diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-11 00:39:47 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-11 00:39:47 +0800 |
commit | cc97eef7be4a7c4beeff5789e00bedbe505a3e85 (patch) | |
tree | 16106c742b876699560ca2e9245168e4a106f910 /mbbsd/announce.c | |
parent | 9f4b76939748677234d5f73981fdd9b25ed90e17 (diff) | |
download | pttbbs-cc97eef7be4a7c4beeff5789e00bedbe505a3e85.tar pttbbs-cc97eef7be4a7c4beeff5789e00bedbe505a3e85.tar.gz pttbbs-cc97eef7be4a7c4beeff5789e00bedbe505a3e85.tar.bz2 pttbbs-cc97eef7be4a7c4beeff5789e00bedbe505a3e85.tar.lz pttbbs-cc97eef7be4a7c4beeff5789e00bedbe505a3e85.tar.xz pttbbs-cc97eef7be4a7c4beeff5789e00bedbe505a3e85.tar.zst pttbbs-cc97eef7be4a7c4beeff5789e00bedbe505a3e85.zip |
Only 2 bytes are useful (3rd byte with big5 results in garbage)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4552 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/announce.c')
-rw-r--r-- | mbbsd/announce.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c index eb2e4786..1c63105d 100644 --- a/mbbsd/announce.c +++ b/mbbsd/announce.c @@ -895,10 +895,10 @@ a_editsign(const menu_t * pm) memcpy(&item, &pm->header[pm->now - pm->page], FHSZ); snprintf(buf, sizeof(buf), "%c%c", item.title[0], item.title[1]); - if (getdata_buf(b_lines - 1, 1, "²Å¸¹", buf, 5, DOECHO)) { + if (getdata_buf(b_lines - 1, 1, "²Å¸¹", buf, 3, DOECHO)) { item.title[0] = buf[0] ? buf[0] : ' '; item.title[1] = buf[1] ? buf[1] : ' '; - item.title[2] = buf[2] ? buf[2] : ' '; + item.title[2] = ' '; setadir(buf, pm->path); substitute_record(buf, &item, FHSZ, pm->now + 1); } |