[haiku-commits] haiku: hrev45506 - src/apps/drivesetup

  • From: kallisti5@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 15 Apr 2013 03:36:16 +0200 (CEST)

hrev45506 adds 1 changeset to branch 'master'
old head: 1fd93573e66d64d43d799bb878285be73e6b7e49
new head: c61ed599d4a2aa1ad04d20ea4a698be1cfad9449
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=c61ed59+%5E1fd9357

----------------------------------------------------------------------------

c61ed59: Fixes #9673

                         [ Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev45506
Commit:      c61ed599d4a2aa1ad04d20ea4a698be1cfad9449
URL:         http://cgit.haiku-os.org/haiku/commit/?id=c61ed59
Author:      Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx>
Date:        Mon Apr 15 00:46:30 2013 UTC
Committer:   Alexander von Gluck IV <kallisti5@xxxxxxxxxxx>
Commit-Date: Mon Apr 15 01:38:02 2013 UTC

Ticket:      https://dev.haiku-os.org/ticket/9673

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 1 deletion(-)
src/apps/drivesetup/CreateParametersPanel.cpp | 2 +-

----------------------------------------------------------------------------

diff --git a/src/apps/drivesetup/CreateParametersPanel.cpp 
b/src/apps/drivesetup/CreateParametersPanel.cpp
index 8f3252b..e08d5ca 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


Other related posts: