From 98acb18b8e6b7d7bfdd49809774e61328ef7f7a5 Mon Sep 17 00:00:00 2001 From: ptt Date: Tue, 30 Mar 2004 16:50:34 +0000 Subject: add mmap to cuser get ride of passwd_update git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1640 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/lovepaper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mbbsd/lovepaper.c') diff --git a/mbbsd/lovepaper.c b/mbbsd/lovepaper.c index 1ab87944..f5dfdfbb 100644 --- a/mbbsd/lovepaper.c +++ b/mbbsd/lovepaper.c @@ -1,4 +1,4 @@ -/* $Id: lovepaper.c,v 1.11 2003/01/19 16:06:06 kcwu Exp $ */ +/* $Id$ */ #include "bbs.h" #define DATA "etc/lovepaper.dat" @@ -15,7 +15,7 @@ x_love() setutmpmode(LOVE); gtime = localtime(&now); snprintf(buf1, sizeof(buf1), "%c/%s/love%d%d", - cuser.userid[0], cuser.userid, gtime->tm_sec, gtime->tm_min); + cuser->userid[0], cuser->userid, gtime->tm_sec, gtime->tm_min); strcat(path, buf1); move(1, 0); clrtobot(); @@ -96,7 +96,7 @@ x_love() stampfile(buf1, &mhdr); Rename(path, buf1); strncpy(mhdr.title, save_title, TTLEN); - strlcpy(mhdr.owner, cuser.userid, sizeof(mhdr.owner)); + strlcpy(mhdr.owner, cuser->userid, sizeof(mhdr.owner)); sethomedir(path, receiver); if (append_record(path, &mhdr, sizeof(mhdr)) == -1) return -1; -- cgit v1.2.3