From 2338468b5bc6fe08bb352b6abc67fbd636c8fb05 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sun, 1 Sep 2002 19:53:47 +0000 Subject: [PATCH] Small fixe for ReadLine stopping too fast when encountering end of file. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@254 --- src/shell/shell_batch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shell/shell_batch.cpp b/src/shell/shell_batch.cpp index 499a8756..cec7f45d 100644 --- a/src/shell/shell_batch.cpp +++ b/src/shell/shell_batch.cpp @@ -63,8 +63,8 @@ emptyline: *cmd_write++=c; } } while (c!='\n' && n); - *cmd_write++=0; - if (!n) { + *cmd_write=0; + if (!n && cmd_write==temp) { delete this; return false; }