From 1d2247bb393afea674213551de9ee001eeea58ad Mon Sep 17 00:00:00 2001 From: in2 Date: Sat, 23 Oct 2004 18:35:53 +0000 Subject: apply memcpy() instead of strlcpy() to mind git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2274 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/passwdconverter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3