From c61ed599d4a2aa1ad04d20ea4a698be1cfad9449 Mon Sep 17 00:00:00 2001 From: Jessica Hamilton Date: Mon, 15 Apr 2013 12:46:30 +1200 Subject: [PATCH] Fixes #9673 --- src/apps/drivesetup/CreateParametersPanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/drivesetup/CreateParametersPanel.cpp b/src/apps/drivesetup/CreateParametersPanel.cpp index 8f3252b014..e08d5ca7fb 100644 --- a/src/apps/drivesetup/CreateParametersPanel.cpp +++ b/src/apps/drivesetup/CreateParametersPanel.cpp @@ -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