summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-12-21 21:22:31 +0100
committerStephan Bergmann <sbergman@redhat.com>2011-12-21 21:22:31 +0100
commitc9bc4a04064f15906ab94cd6c0b175609f3a2ad2 (patch)
tree10d0f6871f3d3b1d24f9deea10e15ef4e589baf7 /l10ntools
parentc1db721af6286ae4c3164075337d81e943845938 (diff)
rtl::OString::copy with count too large raises assert.
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/helpex.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/l10ntools/source/helpex.cxx b/l10ntools/source/helpex.cxx
index 19252850ebef..2680c59b63d1 100644
--- a/l10ntools/source/helpex.cxx
+++ b/l10ntools/source/helpex.cxx
@@ -213,10 +213,10 @@ int _cdecl main( int argc, char *argv[] )
}else if ( sOutputFileX.getLength() && sOutputFileY.getLength() && hasInputList ) { // Merge multiple files ?
if ( bMergeMode ){
- ifstream aFStream( sInputFile.copy( 1 , sInputFile.getLength() ).getStr() , ios::in );
+ ifstream aFStream( sInputFile.copy( 1 ).getStr() , ios::in );
if( !aFStream ){
- cerr << "ERROR: - helpex - Can't open the file " << sInputFile.copy( 1 , sInputFile.getLength() ).getStr() << "\n";
+ cerr << "ERROR: - helpex - Can't open the file " << sInputFile.copy( 1 ).getStr() << "\n";
exit(-1);
}