aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-05-14 00:44:44 +0000
committerMax Horn2003-05-14 00:44:44 +0000
commit4ab566af90e9adb585ace64eaf52418a929c6b6d (patch)
tree0909b756ebcf762a364cac67fd8ff7bda0ab2ca8
parent395b11b26c2d024dd840cd5d88d0beaa344c8458 (diff)
downloadscummvm-rg350-4ab566af90e9adb585ace64eaf52418a929c6b6d.tar.gz
scummvm-rg350-4ab566af90e9adb585ace64eaf52418a929c6b6d.tar.bz2
scummvm-rg350-4ab566af90e9adb585ace64eaf52418a929c6b6d.zip
handle EOF (Ctrl-D) a little bit better
svn-id: r7492
-rw-r--r--scumm/debugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp
index 940861f587..4bd32429ae 100644
--- a/scumm/debugger.cpp
+++ b/scumm/debugger.cpp
@@ -212,7 +212,7 @@ void ScummDebugger::enter() {
do {
printf("debug> ");
if (!fgets(buf, sizeof(buf), stdin))
- continue;
+ return;
i = strlen(buf);
while (i > 0 && buf[i - 1] == '\n')