Index: base/setup/usetup/interface/usetup.c =================================================================== --- base/setup/usetup/interface/usetup.c (revision 74511) +++ base/setup/usetup/interface/usetup.c (working copy) @@ -1755,7 +1755,7 @@ } -#define PARTITION_SIZE_INPUT_FIELD_LENGTH 6 +#define PARTITION_SIZE_INPUT_FIELD_LENGTH 9 /* Restriction for MaxSize: pow(10, PARTITION_SIZE_INPUT_FIELD_LENGTH)-1 */ #define PARTITION_MAXSIZE 999999 @@ -1853,7 +1853,7 @@ PartitionSizeBuffer); } else if ((Ir.Event.KeyEvent.uChar.AsciiChar != 0x00) && - (Index < PARTITION_SIZE_INPUT_FIELD_LENGTH)) + (Index < PARTITION_SIZE_INPUT_FIELD_LENGTH - 1)) { ch = (WCHAR)Ir.Event.KeyEvent.uChar.AsciiChar;