diff options
author | robertabcd <robertabcd@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2014-01-26 12:22:10 +0800 |
---|---|---|
committer | robertabcd <robertabcd@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2014-01-26 12:22:10 +0800 |
commit | 6c0f9227e3811f4d3f605b3bf94d4710d1ea568b (patch) | |
tree | 80c0341acc64d579c21052cda78eb15264a52613 | |
parent | 64d1dc911bae4410e698234a2ea83812206141bc (diff) | |
download | pttbbs-6c0f9227e3811f4d3f605b3bf94d4710d1ea568b.tar pttbbs-6c0f9227e3811f4d3f605b3bf94d4710d1ea568b.tar.gz pttbbs-6c0f9227e3811f4d3f605b3bf94d4710d1ea568b.tar.bz2 pttbbs-6c0f9227e3811f4d3f605b3bf94d4710d1ea568b.tar.lz pttbbs-6c0f9227e3811f4d3f605b3bf94d4710d1ea568b.tar.xz pttbbs-6c0f9227e3811f4d3f605b3bf94d4710d1ea568b.tar.zst pttbbs-6c0f9227e3811f4d3f605b3bf94d4710d1ea568b.zip |
Fix that userid cannot be changed by admins.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5908 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/user.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/user.c b/pttbbs/mbbsd/user.c index 50f4b425..dcd134c4 100644 --- a/pttbbs/mbbsd/user.c +++ b/pttbbs/mbbsd/user.c @@ -1156,7 +1156,8 @@ uinfo_query(const char *orig_uid, int adminmode, int unum) { fail++; #endif - } + } else + strlcpy(x.userid, genbuf, sizeof(x.userid)); } break; |