summaryrefslogtreecommitdiffstats
path: root/mbbsd/passwd.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-15 04:33:47 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-15 04:33:47 +0800
commit026329f85c6ebcbec743d526a0c46bd1c0aab8bb (patch)
tree6f76835cc10bfa49f943a50f5c3db9d36c6c2459 /mbbsd/passwd.c
parentb26fbc65ed9d7cbca50f8758712a9b9b6b2bf853 (diff)
downloadpttbbs-026329f85c6ebcbec743d526a0c46bd1c0aab8bb.tar
pttbbs-026329f85c6ebcbec743d526a0c46bd1c0aab8bb.tar.gz
pttbbs-026329f85c6ebcbec743d526a0c46bd1c0aab8bb.tar.bz2
pttbbs-026329f85c6ebcbec743d526a0c46bd1c0aab8bb.tar.lz
pttbbs-026329f85c6ebcbec743d526a0c46bd1c0aab8bb.tar.xz
pttbbs-026329f85c6ebcbec743d526a0c46bd1c0aab8bb.tar.zst
pttbbs-026329f85c6ebcbec743d526a0c46bd1c0aab8bb.zip
warning: searchuser() getuser() API change, don't change query string implicitly.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2627 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/passwd.c')
-rw-r--r--mbbsd/passwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/passwd.c b/mbbsd/passwd.c
index 5f6100be..1c5ee2f8 100644
--- a/mbbsd/passwd.c
+++ b/mbbsd/passwd.c
@@ -102,7 +102,7 @@ int initcuser(char *userid)
{
// Ptt: setup cuser and usernum here
if(userid[0]=='\0' ||
- !(usernum = searchuser(userid)) || usernum > MAX_USERS)
+ !(usernum = searchuser(userid, NULL)) || usernum > MAX_USERS)
return -1;
passwd_query(usernum, &cuser);
return usernum;