From fa7aa35ff05511295404e8ca86ca54dc15256770 Mon Sep 17 00:00:00 2001 From: ptt Date: Wed, 19 May 2004 20:16:13 +0000 Subject: fix bug of select perm '1-4' git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2009 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/admin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mbbsd') 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 { -- cgit v1.2.3