summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/more.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/more.c b/mbbsd/more.c
index ace229ee..ac6bcf92 100644
--- a/mbbsd/more.c
+++ b/mbbsd/more.c
@@ -114,7 +114,7 @@ more_readln(int fd, unsigned char *buf)
}
} while (len < t_columns && buf < tail);
- if (in_big5) {
+ if (in_big5 && len >= t_columns) {
strcpy(buf - 1, "\033[1;34m>\033[m");
buf += 10;
--head;