diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-07-21 18:11:13 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-07-21 18:11:13 +0800 |
commit | 290e94c252bf0d1b384b3775cd9de04f5afa341a (patch) | |
tree | 42c31e032b1cf9086de66af9839957d05e039074 | |
parent | f9eff7fc2a8b6509b2f7f7b86e895041f96bfdc1 (diff) | |
download | pttbbs-290e94c252bf0d1b384b3775cd9de04f5afa341a.tar pttbbs-290e94c252bf0d1b384b3775cd9de04f5afa341a.tar.gz pttbbs-290e94c252bf0d1b384b3775cd9de04f5afa341a.tar.bz2 pttbbs-290e94c252bf0d1b384b3775cd9de04f5afa341a.tar.lz pttbbs-290e94c252bf0d1b384b3775cd9de04f5afa341a.tar.xz pttbbs-290e94c252bf0d1b384b3775cd9de04f5afa341a.tar.zst pttbbs-290e94c252bf0d1b384b3775cd9de04f5afa341a.zip |
fix using strlcpy() bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@431 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/user.c | 4 |
1 files 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(); |