summaryrefslogtreecommitdiff
path: root/basicmbr.cc
diff options
context:
space:
mode:
authorsrs5694 <srs5694@users.sourceforge.net>2012-03-25 16:13:16 -0400
committersrs5694 <srs5694@users.sourceforge.net>2012-03-25 16:13:16 -0400
commita6297b8a2c24adc5aa6dcd03cdc766368cda898d (patch)
tree7f1dc43989bab06828df05388048f32a51bbdd7e /basicmbr.cc
parent3488294d718a0e8b7f312c80c9e5729671173f6a (diff)
downloadsgdisk-a6297b8a2c24adc5aa6dcd03cdc766368cda898d.tar.gz
Fix Ctrl+D problems; 0.8.4 release
Diffstat (limited to 'basicmbr.cc')
-rw-r--r--basicmbr.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/basicmbr.cc b/basicmbr.cc
index fd5f30a..7483734 100644
--- a/basicmbr.cc
+++ b/basicmbr.cc
@@ -1532,7 +1532,7 @@ int BasicMBRData::DoMenu(const string& prompt) {
cout << prompt;
switch (ReadString()[0]) {
case '\0':
- goOn = !cin.eof();
+ goOn = cin.good();
break;
case 'a': case 'A':
num = GetNumber(1, MAX_MBR_PARTS, 1, "Toggle active flag for partition: ") - 1;