From 7d73f5651455c2500454c12546e39c684e33a3f4 Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 9 Dec 2007 06:58:59 +0000 Subject: - 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 --- mbbsd/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mbbsd') 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(' '); -- cgit v1.2.3