summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-10-24 02:35:53 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-10-24 02:35:53 +0800
commit1d2247bb393afea674213551de9ee001eeea58ad (patch)
treefbb1d7e6baa3cba51ca80555bec760c5007e9618
parent69165fe96c9c6ed04697bc61d75196bf7454636d (diff)
downloadpttbbs-1d2247bb393afea674213551de9ee001eeea58ad.tar
pttbbs-1d2247bb393afea674213551de9ee001eeea58ad.tar.gz
pttbbs-1d2247bb393afea674213551de9ee001eeea58ad.tar.bz2
pttbbs-1d2247bb393afea674213551de9ee001eeea58ad.tar.lz
pttbbs-1d2247bb393afea674213551de9ee001eeea58ad.tar.xz
pttbbs-1d2247bb393afea674213551de9ee001eeea58ad.tar.zst
pttbbs-1d2247bb393afea674213551de9ee001eeea58ad.zip
apply memcpy() instead of strlcpy() to mind
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2274 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--util/passwdconverter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/passwdconverter.c b/util/passwdconverter.c
index 74cf8700..cd5b1fc6 100644
--- a/util/passwdconverter.c
+++ b/util/passwdconverter.c
@@ -95,7 +95,7 @@ void transform(userec_t *new, old_userec_t *old)
new->chc_lose = old->chc_lose;
new->chc_tie = old->chc_tie;
new->mobile = old->mobile;
- strlcpy(new->mind, old->mind, 4);
+ memcpy(new->mind, old->mind, 4);
strlcpy(new->ident, old->ident, 11);
new->uflag2 = old->uflag2;
new->signature = old->signature;