diff options
Diffstat (limited to 'gptcurses.cc')
-rw-r--r-- | gptcurses.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gptcurses.cc b/gptcurses.cc index a9f466c..3e9b240 100644 --- a/gptcurses.cc +++ b/gptcurses.cc @@ -394,6 +394,7 @@ void GPTDataCurses::ChangeType(int partNum) { // Sets the partition alignment value void GPTDataCurses::SetAlignment(void) { int alignment; + char conversion_specifier[] = "%d"; move(LINES - 4, 0); clrtobot(); @@ -402,7 +403,7 @@ void GPTDataCurses::SetAlignment(void) { move(LINES - 3, 0); printw("Type new alignment value, in sectors: "); echo(); - scanw("%d", &alignment); + scanw(conversion_specifier, &alignment); noecho(); } while ((alignment == 0) || (alignment > MAX_ALIGNMENT)); GPTData::SetAlignment(alignment); |