summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-17 08:57:21 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-17 08:57:21 +0800
commit946083d56cf47891fc698c09e86bb4816392b66e (patch)
tree107418b8bd8d61bbc5dae35cc426356c65f84fbb /mbbsd/mbbsd.c
parentee0fcfc8fb094461d198ff965633401399f9ce33 (diff)
downloadpttbbs-946083d56cf47891fc698c09e86bb4816392b66e.tar
pttbbs-946083d56cf47891fc698c09e86bb4816392b66e.tar.gz
pttbbs-946083d56cf47891fc698c09e86bb4816392b66e.tar.bz2
pttbbs-946083d56cf47891fc698c09e86bb4816392b66e.tar.lz
pttbbs-946083d56cf47891fc698c09e86bb4816392b66e.tar.xz
pttbbs-946083d56cf47891fc698c09e86bb4816392b66e.tar.zst
pttbbs-946083d56cf47891fc698c09e86bb4816392b66e.zip
reduce SHM size(remove realname)
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@1054 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index a20188a6..da5c6c94 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1,4 +1,4 @@
-/* $Id: mbbsd.c,v 1.88 2003/07/05 07:58:09 in2 Exp $ */
+/* $Id: mbbsd.c,v 1.89 2003/07/17 00:57:21 in2 Exp $ */
#include "bbs.h"
#define SOCKET_QLEN 4
@@ -722,7 +722,7 @@ setup_utmp(int mode)
uinfo.sex = cuser.sex % 8;
uinfo.lastact = time(NULL);
strlcpy(uinfo.userid, cuser.userid, sizeof(uinfo.userid));
- strlcpy(uinfo.realname, cuser.realname, sizeof(uinfo.realname));
+ //strlcpy(uinfo.realname, cuser.realname, sizeof(uinfo.realname));
strlcpy(uinfo.username, cuser.username, sizeof(uinfo.username));
strlcpy(uinfo.from, fromhost, sizeof(uinfo.from));
uinfo.five_win = cuser.five_win;
@@ -863,8 +863,7 @@ user_login()
strlcpy(currutmp->username, cuser.username,
sizeof(currutmp->username));
strlcpy(cuser.realname, name[(int)i], sizeof(cuser.realname));
- strlcpy(currutmp->realname, cuser.realname,
- sizeof(currutmp->realname));
+ //strlcpy(currutmp->realname, cuser.realname, sizeof(currutmp->realname));
strlcpy(cuser.address, addr[(int)i], sizeof(cuser.address));
cuser.sex = i % 8;
currutmp->pager = 2;