summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-05-13 03:27:11 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-05-13 03:27:11 +0800
commita6791f8eabb314185765cf54975aad5d791f13dd (patch)
treee38f9ab995da115f037637648739bc482f281270 /mbbsd/talk.c
parent315fa725126ad2046d562a0948413c7fbc88626c (diff)
downloadpttbbs-a6791f8eabb314185765cf54975aad5d791f13dd.tar
pttbbs-a6791f8eabb314185765cf54975aad5d791f13dd.tar.gz
pttbbs-a6791f8eabb314185765cf54975aad5d791f13dd.tar.bz2
pttbbs-a6791f8eabb314185765cf54975aad5d791f13dd.tar.lz
pttbbs-a6791f8eabb314185765cf54975aad5d791f13dd.tar.xz
pttbbs-a6791f8eabb314185765cf54975aad5d791f13dd.tar.zst
pttbbs-a6791f8eabb314185765cf54975aad5d791f13dd.zip
No white space padding when prvious string already too long
(due to the bug in dietlibc cvs version) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3514 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r--mbbsd/talk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 62ad4670..b2307476 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -476,6 +476,7 @@ my_query(const char *uident)
prints("¡m¢×¢Ò¼ÊºÙ¡n%s(%s)%*s¡m¸gÀÙª¬ªp¡n%s",
muser.userid,
muser.nickname,
+ strlen(muser.userid) + strlen(muser.nickname) >= 26 ? 0 :
(int)(26 - strlen(muser.userid) - strlen(muser.nickname)), "",
money_level(muser.money));
if (uentp && ((fri_stat & HFM && !uentp->invisible) || strcmp(muser.userid,cuser.userid) == 0))