summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-05 04:08:11 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-05 04:08:11 +0800
commit34acfcb0f815e17b323dea2ceb255372928778f8 (patch)
tree210e28cffe66cbf187f79a21a8c1a2357cdcc967 /mbbsd/mbbsd.c
parent849e8bdccab33fa65d599b8f0bddf8819f499553 (diff)
downloadpttbbs-34acfcb0f815e17b323dea2ceb255372928778f8.tar
pttbbs-34acfcb0f815e17b323dea2ceb255372928778f8.tar.gz
pttbbs-34acfcb0f815e17b323dea2ceb255372928778f8.tar.bz2
pttbbs-34acfcb0f815e17b323dea2ceb255372928778f8.tar.lz
pttbbs-34acfcb0f815e17b323dea2ceb255372928778f8.tar.xz
pttbbs-34acfcb0f815e17b323dea2ceb255372928778f8.tar.zst
pttbbs-34acfcb0f815e17b323dea2ceb255372928778f8.zip
mind
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@412 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index ae560338..9309668d 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1,4 +1,4 @@
-/* $Id: mbbsd.c,v 1.37 2002/07/04 19:46:16 in2 Exp $ */
+/* $Id: mbbsd.c,v 1.38 2002/07/04 20:08:11 in2 Exp $ */
#include "bbs.h"
#define SOCKET_QLEN 4
@@ -168,7 +168,7 @@ u_exit (char *mode)
cuser.invisible = currutmp->invisible;
cuser.pager = currutmp->pager;
- cuser.mind = currutmp->mind;
+ memcpy(cuser.mind, currutmp->mind, 4);
setutmpbid(0);
if (!(HAS_PERM (PERM_SYSOP) && HAS_PERM (PERM_DENYPOST)) &&
!currutmp->invisible )
@@ -739,7 +739,7 @@ setup_utmp (int mode)
uinfo.five_tie = cuser.five_tie;
uinfo.invisible = cuser.invisible % 2;
uinfo.pager = cuser.pager%5;
- uinfo.mind = cuser.mind;
+ memcpy(uinfo.mind, cuser.mind, 4);
#ifdef WHERE
uinfo.from_alias = where (fromhost);
#endif