summaryrefslogtreecommitdiff
path: root/sal/workben
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@gmail.com>2012-07-25 20:03:22 +0200
committerArnaud Versini <arnaud.versini@gmail.com>2012-07-27 20:19:13 +0200
commitd6c284e4b146a44ba69a96836c59a98d077bb934 (patch)
tree13f4f278cd9642eadcbadbc84581573aafb28c58 /sal/workben
parent5dbbe223c8586bd653685d27c664aa8395632e4a (diff)
Use memset and memcpy insteadof rtl_zeroMemory and rtl_copyMemory in sal
Change-Id: I4f9649ca61c988d425b59e41549d1c46bb808f2c
Diffstat (limited to 'sal/workben')
-rw-r--r--sal/workben/testfile.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/workben/testfile.cxx b/sal/workben/testfile.cxx
index 22f05b840bae..0c6aff29a5a9 100644
--- a/sal/workben/testfile.cxx
+++ b/sal/workben/testfile.cxx
@@ -191,7 +191,7 @@ sal_Bool Initialize( void )
// read ini-File
rc=pFile->setPos( osl_Pos_Absolut, 0 );
pBuffer=(sal_Char*) rtl_allocateMemory( (sal_uInt32) (uBytesRequested+1)*sizeof(sal_Char) );
- rtl_zeroMemory( pBuffer, (sal_uInt32)(uBytesRequested+1)*sizeof(sal_Char) );
+ memset( pBuffer, 0, (sal_uInt32)(uBytesRequested+1)*sizeof(sal_Char) );
rc=pFile->read( pBuffer , uBytesRequested , uBytesRead );
if ( rc!=FileBase::E_None )
@@ -852,7 +852,7 @@ void FileWriteAndReadTest( void )
//----------------------------------------------------
pReadBuffer=(sal_Char*) rtl_allocateMemory( (sal_uInt32)(nLen+1)*sizeof(sal_Char) );
- rtl_zeroMemory( pReadBuffer, (sal_uInt32)(nLen+1)*sizeof(sal_Char) );
+ memset( pReadBuffer, 0, (sal_uInt32)(nLen+1)*sizeof(sal_Char) );
rc=pFile->read( pReadBuffer , nLen,uRead );
print_error( rtl::OString( "Read File" ), rc );