This commit is contained in:
Jessica Hamilton 2013-04-15 12:46:30 +12:00 committed by Alexander von Gluck IV
parent 1fd93573e6
commit c61ed599d4
1 changed files with 1 additions and 1 deletions

View File

@ -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