ascfldlg.cxx (efeef26f) ascfldlg.cxx (205b6fc7)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 103 unchanged lines hidden (view full) ---

112 sal_uLong nOldPos = pStream->Tell();
113 sal_uLong nBytesRead = pStream->Read( aBuffer, 4096 );
114 pStream->Seek( nOldPos );
115
116 if( nBytesRead <= 4096 )
117 {
118 aBuffer[ nBytesRead ] = '0';
119 aBuffer[ nBytesRead+1 ] = '0';
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 103 unchanged lines hidden (view full) ---

112 sal_uLong nOldPos = pStream->Tell();
113 sal_uLong nBytesRead = pStream->Read( aBuffer, 4096 );
114 pStream->Seek( nOldPos );
115
116 if( nBytesRead <= 4096 )
117 {
118 aBuffer[ nBytesRead ] = '0';
119 aBuffer[ nBytesRead+1 ] = '0';
120 if( 0 != ( nBytesRead & 0x00000001 ) )
121 aBuffer[ nBytesRead + 2 ] = '0';
122 }
123
124 sal_Bool bCR = sal_False, bLF = sal_False, bNoNormalChar = sal_False,
125 bNullChar = sal_False;
126 for( sal_uInt16 nCnt = 0; nCnt < nBytesRead; ++nCnt )
127 switch( aBuffer[ nCnt ] )
128 {
129 case 0x0: bNullChar = sal_True; break;

--- 329 unchanged lines hidden ---
120 }
121
122 sal_Bool bCR = sal_False, bLF = sal_False, bNoNormalChar = sal_False,
123 bNullChar = sal_False;
124 for( sal_uInt16 nCnt = 0; nCnt < nBytesRead; ++nCnt )
125 switch( aBuffer[ nCnt ] )
126 {
127 case 0x0: bNullChar = sal_True; break;

--- 329 unchanged lines hidden ---