summaryrefslogtreecommitdiff
path: root/gdisk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gdisk.cc')
-rw-r--r--gdisk.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdisk.cc b/gdisk.cc
index fc0355c..a3e4bb9 100644
--- a/gdisk.cc
+++ b/gdisk.cc
@@ -318,6 +318,7 @@ void ExpertsMenu(string filename, GPTDataTextUI* theGPT) {
uint32_t pn, temp1, temp2;
int goOn = 1;
GUIDData aGUID;
+ ostringstream prompt;
do {
cout << "\nExpert command (? for help): ";
@@ -355,8 +356,10 @@ void ExpertsMenu(string filename, GPTDataTextUI* theGPT) {
theGPT->ShowDetails();
break;
case 'l': case 'L':
- temp1 = GetNumber(1, 128, 8, (string)
- "Enter the sector alignment value (1-128, default = 8): ");
+ prompt.seekp(0);
+ prompt << "Enter the sector alignment value (1-" << MAX_ALIGNMENT << ", default = "
+ << DEFAULT_ALIGNMENT << "): ";
+ temp1 = GetNumber(1, MAX_ALIGNMENT, DEFAULT_ALIGNMENT, prompt.str());
theGPT->SetAlignment(temp1);
break;
case 'm': case 'M':