From 776afbfaa8b6440dfa2f15045837c59d42e18547 Mon Sep 17 00:00:00 2001 From: piaip Date: Fri, 19 Jun 2009 16:42:37 +0000 Subject: * to fill request correctly git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4677 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/emaildb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mbbsd') diff --git a/mbbsd/emaildb.c b/mbbsd/emaildb.c index 899b2fda..ce493ecc 100644 --- a/mbbsd/emaildb.c +++ b/mbbsd/emaildb.c @@ -15,6 +15,7 @@ int emaildb_check_email(char * email, int email_len) req.cb = sizeof(req); req.operation = REGMAILDB_REQ_COUNT; strlcpy(req.userid, cuser.userid, sizeof(req.userid)); + strlcpy(req.email, email, sizeof(req.email)); if ( (fd = toconnect(REGMAILD_ADDR)) < 0 ) { @@ -46,7 +47,8 @@ int emaildb_update_email(char * userid, int userid_len, char * email, int email_ // initialize request req.cb = sizeof(req); req.operation = REGMAILDB_REQ_SET; - strlcpy(req.userid, cuser.userid, sizeof(req.userid)); + strlcpy(req.userid, userid, sizeof(req.userid)); + strlcpy(req.email, email, sizeof(req.email)); if ( (fd = toconnect(REGMAILD_ADDR)) < 0 ) { -- cgit v1.2.3