summaryrefslogtreecommitdiffstats
path: root/mbbsd/syspost.c
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-24 18:36:33 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-24 18:36:33 +0800
commit8999cf9ce4f31a052952545a8ca6ad94b355a6b8 (patch)
tree578bbfc9a66bd65059b0b156e016f3665607ab7e /mbbsd/syspost.c
parent3a0e713966abc5096a05d4294cc71a15bd71233c (diff)
downloadpttbbs-8999cf9ce4f31a052952545a8ca6ad94b355a6b8.tar
pttbbs-8999cf9ce4f31a052952545a8ca6ad94b355a6b8.tar.gz
pttbbs-8999cf9ce4f31a052952545a8ca6ad94b355a6b8.tar.bz2
pttbbs-8999cf9ce4f31a052952545a8ca6ad94b355a6b8.tar.lz
pttbbs-8999cf9ce4f31a052952545a8ca6ad94b355a6b8.tar.xz
pttbbs-8999cf9ce4f31a052952545a8ca6ad94b355a6b8.tar.zst
pttbbs-8999cf9ce4f31a052952545a8ca6ad94b355a6b8.zip
fix type
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2424 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 1070e7c9..100e067f 100644
--- a/mbbsd/syspost.c
+++ b/mbbsd/syspost.c
@@ -134,7 +134,8 @@ 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 判決", crime, 37-strlen(reason)-strlen(crime), reason);
+ "[報告] %s:%-*s 判決", crime,
+ (int)(37 - strlen(reason) - strlen(crime)), reason);
strlcpy(fhdr.owner, "[Ptt法院]", sizeof(fhdr.owner));
append_record("boards/V/ViolateLaw/.DIR", &fhdr, sizeof(fhdr));