summaryrefslogtreecommitdiffstats
path: root/mbbsd/syspost.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-10-13 03:46:34 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-10-13 03:46:34 +0800
commitc8b01d234061bc0b668ad71798955a332ddd186e (patch)
tree3986c9e85c6f8b85262bda5cc98be61d5b81b474 /mbbsd/syspost.c
parent373fce8dc67999476b2786c95a7bceeead6dcc09 (diff)
downloadpttbbs-c8b01d234061bc0b668ad71798955a332ddd186e.tar
pttbbs-c8b01d234061bc0b668ad71798955a332ddd186e.tar.gz
pttbbs-c8b01d234061bc0b668ad71798955a332ddd186e.tar.bz2
pttbbs-c8b01d234061bc0b668ad71798955a332ddd186e.tar.lz
pttbbs-c8b01d234061bc0b668ad71798955a332ddd186e.tar.xz
pttbbs-c8b01d234061bc0b668ad71798955a332ddd186e.tar.zst
pttbbs-c8b01d234061bc0b668ad71798955a332ddd186e.zip
there was no touchbtotal at syspost. added it.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2246 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/syspost.c')
-rw-r--r--mbbsd/syspost.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/syspost.c b/mbbsd/syspost.c
index 033ddb2e..2d5f9e5d 100644
--- a/mbbsd/syspost.c
+++ b/mbbsd/syspost.c
@@ -134,10 +134,11 @@ post_violatelaw(char *crime, char *police, char *reason, char *result)
crime, ctime(&now), police, crime, reason, result);
fclose(fp);
snprintf(fhdr.title, sizeof(fhdr.title),
- "[報告] %s: %s 判決報告", reason, crime);
+ "[報告] %s:%-*s 判決", crime, 34-strlen(reason)-strlen(crime), reason);
strlcpy(fhdr.owner, "[Ptt法院]", sizeof(fhdr.owner));
append_record("boards/V/ViolateLaw/.DIR", &fhdr, sizeof(fhdr));
+ touchbtotal(getbnum("ViolateLaw"));
}