From 9a3d8ed28dc44743b6715cd8bac39b55762cba11 Mon Sep 17 00:00:00 2001 From: Arnaud Versini Date: Mon, 13 Aug 2012 11:21:13 +0200 Subject: Replace usage of rtl/memory.h in vcl with equivalent from string.h Change-Id: If8d460189c57f9c02923019e95bf47db1d96c716 --- vcl/source/gdi/pdfwriter_impl2.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vcl/source/gdi/pdfwriter_impl2.cxx') diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx index d7998c9b1264..16f806bf6c7b 100644 --- a/vcl/source/gdi/pdfwriter_impl2.cxx +++ b/vcl/source/gdi/pdfwriter_impl2.cxx @@ -1234,8 +1234,8 @@ uno::Reference< beans::XMaterialHolder > PDFWriterImpl::initEncryption( const rt xResult.clear(); // trash temporary padded cleartext PWDs - rtl_zeroMemory( aPadOPW, sizeof(aPadOPW) ); - rtl_zeroMemory( aPadUPW, sizeof(aPadUPW) ); + memset( aPadOPW, 0, sizeof(aPadOPW) ); + memset( aPadUPW, 0, sizeof(aPadUPW) ); } return xResult; @@ -1317,7 +1317,7 @@ void PDFWriterImpl::padPassword( const rtl::OUString& i_rPassword, sal_uInt8* o_ o_pPaddedPW[i] = s_nPadString[y]; // trash memory of temporary clear text password - rtl_zeroMemory( (sal_Char*)aString.getStr(), aString.getLength() ); + memset( (sal_Char*)aString.getStr(), 0, aString.getLength() ); } /********************************** -- cgit