summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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(' ');