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 | b617736e90d62041918129d6aa222a60df7c552f (patch) | |
tree | c96885719d1332a1094753f14ee588cdfe2c3d04 | |
parent | eee1f55131d3ade2cd07a9b730e40598afd75e6a (diff) | |
download | pttbbs-b617736e90d62041918129d6aa222a60df7c552f.tar pttbbs-b617736e90d62041918129d6aa222a60df7c552f.tar.gz pttbbs-b617736e90d62041918129d6aa222a60df7c552f.tar.bz2 pttbbs-b617736e90d62041918129d6aa222a60df7c552f.tar.lz pttbbs-b617736e90d62041918129d6aa222a60df7c552f.tar.xz pttbbs-b617736e90d62041918129d6aa222a60df7c552f.tar.zst pttbbs-b617736e90d62041918129d6aa222a60df7c552f.zip |
fix using strlcpy() bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@431 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/user.c b/pttbbs/mbbsd/user.c index 60b51b1f..b830fe5c 100644 --- a/pttbbs/mbbsd/user.c +++ b/pttbbs/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(); |