diff options
author | Rüdiger Timm <rt@openoffice.org> | 2008-08-27 10:48:05 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2008-08-27 10:48:05 +0000 |
commit | 52e35957f6afcfa9c620150adec05c6ed1a31778 (patch) | |
tree | 14f628210160756d0fc9d9dc90fe971d05ab8862 /javainstaller2 | |
parent | ab368797daa09aa96304e4a50224dbaec66dcc45 (diff) |
INTEGRATION: CWS native188_DEV300 (1.6.34); FILE MERGED
2008/08/21 10:01:25 is 1.6.34.1: #i92962# problem with very large hard discs
Diffstat (limited to 'javainstaller2')
-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); } |