aboutsummaryrefslogtreecommitdiff
path: root/jim-aio.c
diff options
context:
space:
mode:
Diffstat (limited to 'jim-aio.c')
-rw-r--r--jim-aio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jim-aio.c b/jim-aio.c
index 9a41d32..203dc63 100644
--- a/jim-aio.c
+++ b/jim-aio.c
@@ -141,7 +141,7 @@ static int JimAioHandlerCommand(Jim_Interp *interp, int argc,
buf[AIO_BUF_LEN-1] = '_';
if (fgets(buf, AIO_BUF_LEN, af->fp) == NULL)
break;
- if (buf[AIO_BUF_LEN-1] == '\0' && buf[AIO_BUF_LEN] == '\n')
+ if (buf[AIO_BUF_LEN-1] == '\0' && buf[AIO_BUF_LEN-2] != '\n')
more = 1;
if (more) {
Jim_AppendString(interp, objPtr, buf, AIO_BUF_LEN-1);