summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-20 00:42:37 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-20 00:42:37 +0800
commit776afbfaa8b6440dfa2f15045837c59d42e18547 (patch)
tree572bdda240e7d2364dc47ceb5fcff12d47d8d6dd
parent77e3b2e662b044b8a8baaa669a880315488a6298 (diff)
downloadpttbbs-776afbfaa8b6440dfa2f15045837c59d42e18547.tar
pttbbs-776afbfaa8b6440dfa2f15045837c59d42e18547.tar.gz
pttbbs-776afbfaa8b6440dfa2f15045837c59d42e18547.tar.bz2
pttbbs-776afbfaa8b6440dfa2f15045837c59d42e18547.tar.lz
pttbbs-776afbfaa8b6440dfa2f15045837c59d42e18547.tar.xz
pttbbs-776afbfaa8b6440dfa2f15045837c59d42e18547.tar.zst
pttbbs-776afbfaa8b6440dfa2f15045837c59d42e18547.zip
* to fill request correctly
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4677 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/emaildb.c4
1 files changed, 3 insertions, 1 deletions
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 )
{