From 290e94c252bf0d1b384b3775cd9de04f5afa341a Mon Sep 17 00:00:00 2001 From: in2 Date: Sun, 21 Jul 2002 10:11:13 +0000 Subject: fix using strlcpy() bug git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@431 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/user.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mbbsd/user.c b/mbbsd/user.c index 60b51b1f..b830fe5c 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -1,4 +1,4 @@ -/* $Id: user.c,v 1.31 2002/07/21 09:26:02 in2 Exp $ */ +/* $Id: user.c,v 1.32 2002/07/21 10:11:13 in2 Exp $ */ #include "bbs.h" static char *sex[8] = { @@ -728,7 +728,7 @@ getfield(int line, char *info, char *desc, char *buf, int len) outs(genbuf); sprintf(prompt, "%sĄG", desc); if (getdata_str(line + 1, 2, prompt, genbuf, len, DOECHO, buf)) - strlcpy(buf, genbuf, sizeof(buf)); + strcpy(buf, genbuf); move(line, 2); prints("%sĄG%s", desc, buf); clrtoeol(); -- cgit v1.2.3