diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-22 23:23:09 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-22 23:23:09 +0800 |
commit | ba062be712fba188ce7624ecbd8c1ee4554545f4 (patch) | |
tree | 825d5a2b7fe73c82b500039807965afd51420264 /mbbsd/syspost.c | |
parent | a1d2b5a7522d4a225309c7c3a0215388e9e26f3b (diff) | |
download | pttbbs-ba062be712fba188ce7624ecbd8c1ee4554545f4.tar pttbbs-ba062be712fba188ce7624ecbd8c1ee4554545f4.tar.gz pttbbs-ba062be712fba188ce7624ecbd8c1ee4554545f4.tar.bz2 pttbbs-ba062be712fba188ce7624ecbd8c1ee4554545f4.tar.lz pttbbs-ba062be712fba188ce7624ecbd8c1ee4554545f4.tar.xz pttbbs-ba062be712fba188ce7624ecbd8c1ee4554545f4.tar.zst pttbbs-ba062be712fba188ce7624ecbd8c1ee4554545f4.zip |
fix 2 bug for last patch.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2856 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/syspost.c')
-rw-r--r-- | mbbsd/syspost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/syspost.c b/mbbsd/syspost.c index fbed4c7f..99d0fd16 100644 --- a/mbbsd/syspost.c +++ b/mbbsd/syspost.c @@ -70,7 +70,7 @@ post_change_perm(int oldperm, int newperm, const char *sysopid, const char *user fprintf(fp, "作者: [系統安全局] 看板: Security\n" "標題: [公安報告] 站長修改權限報告\n" "時間: %s\n", ctime4(&now)); - for (i = 1; i < NUMPERMS; i++) { + for (i = 0; i < NUMPERMS; i++) { if (((oldperm >> i) & 1) != ((newperm >> i) & 1)) { fprintf(fp, " 站長" ANSI_COLOR(1;32) "%s%s%s%s" ANSI_RESET "的權限\n", sysopid, |