diff options
-rwxr-xr-x | javainstaller2/src/JavaSetup/org/openoffice/setup/Util/SystemManager.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/javainstaller2/src/JavaSetup/org/openoffice/setup/Util/SystemManager.java b/javainstaller2/src/JavaSetup/org/openoffice/setup/Util/SystemManager.java index 016bbdc780a1..08bb4842252b 100755 --- a/javainstaller2/src/JavaSetup/org/openoffice/setup/Util/SystemManager.java +++ b/javainstaller2/src/JavaSetup/org/openoffice/setup/Util/SystemManager.java @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: SystemManager.java,v $ - * $Revision: 1.6 $ + * $Revision: 1.7 $ * * This file is part of OpenOffice.org. * @@ -470,6 +470,11 @@ public class SystemManager { if ( returnArray.length > 3 ) { String sizeString = returnArray[position]; + // Special handling for very large hard discs that cannot be converted to int + if ( sizeString.length() >= Integer.toString(Integer.MAX_VALUE).length() ) { + sizeString = Integer.toString(Integer.MAX_VALUE); + } + // Converting from String to int size = Integer.parseInt(sizeString); } |