summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-24 05:02:41 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-24 05:02:41 +0800
commitc8ca89f87d8fbd2e642a2787acb9bf02614ffe04 (patch)
treee77117feab4f369e738c53fbd05d4649564238bb /mbbsd/bbs.c
parentf30ceeae171f34b4565eecf8fdcf674aee2edb54 (diff)
downloadpttbbs-c8ca89f87d8fbd2e642a2787acb9bf02614ffe04.tar
pttbbs-c8ca89f87d8fbd2e642a2787acb9bf02614ffe04.tar.gz
pttbbs-c8ca89f87d8fbd2e642a2787acb9bf02614ffe04.tar.bz2
pttbbs-c8ca89f87d8fbd2e642a2787acb9bf02614ffe04.tar.lz
pttbbs-c8ca89f87d8fbd2e642a2787acb9bf02614ffe04.tar.xz
pttbbs-c8ca89f87d8fbd2e642a2787acb9bf02614ffe04.tar.zst
pttbbs-c8ca89f87d8fbd2e642a2787acb9bf02614ffe04.zip
add dietlibc support, reduced 16kb memory usage on linux x86_64.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2534 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 2f26b5b9..30ae48b6 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1724,16 +1724,16 @@ recommend(int ent, fileheader_t * fhdr, char *direct)
#ifdef OLDRECOMMEND
snprintf(buf, sizeof(buf),
- "\033[1;31m¡÷ \033[33m%s\033[m\033[33m:%*s\033[m"
+ "\033[1;31m¡÷ \033[33m%s\033[m\033[33m:%-*s\033[m"
"±À%15s %02d/%02d\n",
- cuser.userid, -maxlength, msg,
+ cuser.userid, maxlength, msg,
fromhost, ptime->tm_mon + 1, ptime->tm_mday);
#else
snprintf(buf, sizeof(buf),
- "\033[1;%s \033[33m%s\033[m\033[33m:%*s\033[m%15s %02d/%02d\n",
+ "\033[1;%s \033[33m%s\033[m\033[33m:%-*s\033[m%15s %02d/%02d\n",
ctype[type],
cuser.userid,
- -maxlength,
+ maxlength,
msg,
fromhost,
ptime->tm_mon + 1, ptime->tm_mday);