summaryrefslogtreecommitdiffstats
path: root/mbbsd/admin.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-20 04:16:13 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-20 04:16:13 +0800
commitfa7aa35ff05511295404e8ca86ca54dc15256770 (patch)
tree1731fa4d92c527170dab5380fc09efc95f5dde8c /mbbsd/admin.c
parent2219ad3e3f26c4d3bf0727c26bda398133e6e42e (diff)
downloadpttbbs-fa7aa35ff05511295404e8ca86ca54dc15256770.tar
pttbbs-fa7aa35ff05511295404e8ca86ca54dc15256770.tar.gz
pttbbs-fa7aa35ff05511295404e8ca86ca54dc15256770.tar.bz2
pttbbs-fa7aa35ff05511295404e8ca86ca54dc15256770.tar.lz
pttbbs-fa7aa35ff05511295404e8ca86ca54dc15256770.tar.xz
pttbbs-fa7aa35ff05511295404e8ca86ca54dc15256770.tar.zst
pttbbs-fa7aa35ff05511295404e8ca86ca54dc15256770.zip
fix bug of select perm '1-4'
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2009 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r--mbbsd/admin.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index c5d94ca6..cab03ee4 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -219,7 +219,6 @@ unsigned int
setperms(unsigned int pbits, char *pstring[])
{
register int i;
- char choice[4];
move(4, 0);
for (i = 0; i < NUMPERMS / 2; i++) {
@@ -236,7 +235,7 @@ setperms(unsigned int pbits, char *pstring[])
{
i = i - 'a';
if (i < 0)
- i = choice[0] - '0' + 26;
+ i = i + 'a' - '0' + 26;
if (i >= NUMPERMS)
bell();
else {