This commit is contained in:
Jessica Hamilton
2013-04-14 20:38:02 -05:00
committed by Alexander von Gluck IV
parent 1fd93573e6
commit c61ed599d4
@@ -87,7 +87,7 @@ CreateParametersPanel::MessageReceived(BMessage* message)
case MSG_SIZE_TEXTCONTROL:
{
off_t size = atoi(fSizeTextControl->Text()) * kMegaByte;
off_t size = strtoll(fSizeTextControl->Text(), NULL, 10) * kMegaByte;
if (size >= 0 && size <= fSizeSlider->MaxPartitionSize())
fSizeSlider->SetSize(size);
else