diff options
Diffstat (limited to 'mbbsd/syspost.c')
-rw-r--r-- | mbbsd/syspost.c | 3 |
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")); } |