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
This commit is contained in:
parent
98744b3e51
commit
2338468b5b
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue