From 34acfcb0f815e17b323dea2ceb255372928778f8 Mon Sep 17 00:00:00 2001 From: in2 Date: Thu, 4 Jul 2002 20:08:11 +0000 Subject: mind git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@412 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mbbsd/mbbsd.c') 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 -- cgit v1.2.3