summaryrefslogtreecommitdiffstats
path: root/mbbsd/io.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-09 14:58:59 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-09 14:58:59 +0800
commit7d73f5651455c2500454c12546e39c684e33a3f4 (patch)
tree34687300442d0dd261d9d6686e5e5c56b26569f4 /mbbsd/io.c
parent44a74ee09abf228ac54fcd87fafc5a4d4c53c263 (diff)
downloadpttbbs-7d73f5651455c2500454c12546e39c684e33a3f4.tar
pttbbs-7d73f5651455c2500454c12546e39c684e33a3f4.tar.gz
pttbbs-7d73f5651455c2500454c12546e39c684e33a3f4.tar.bz2
pttbbs-7d73f5651455c2500454c12546e39c684e33a3f4.tar.lz
pttbbs-7d73f5651455c2500454c12546e39c684e33a3f4.tar.xz
pttbbs-7d73f5651455c2500454c12546e39c684e33a3f4.tar.zst
pttbbs-7d73f5651455c2500454c12546e39c684e33a3f4.zip
- getdata: offset-by-one in input field with ANSI
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3659 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/io.c')
-rw-r--r--mbbsd/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/io.c b/mbbsd/io.c
index a674976a..9b5f1308 100644
--- a/mbbsd/io.c
+++ b/mbbsd/io.c
@@ -884,7 +884,7 @@ oldgetdata(int line, int col, const char *prompt, char *buf, int len, int echo)
standout();
for(i=0; i<=len; i++)
{
- if(i <= clen)
+ if(i < clen)
outc(buf[i]);
else
outc(' ');