Kaydet (Commit) c4344e48 authored tarafından Arnaud Versini's avatar Arnaud Versini Kaydeden (comit) Tor Lillqvist

Update dtrans commented code to use string.h function instead of rtl/memory

Change-Id: I244e436086746420cc66b0ed7d59bfcdc6606076
Reviewed-on: https://gerrit.libreoffice.org/1025Reviewed-by: 's avatarTor Lillqvist <tml@iki.fi>
Tested-by: 's avatarTor Lillqvist <tml@iki.fi>
üst e7037b2e
......@@ -272,7 +272,7 @@ Sequence< sal_Int8 > SAL_CALL TextHtmlToHTMLFormat( Sequence< sal_Int8 >& aTextH
// the HTML Format header
char aHTMLFmtHdr[120];
rtl_zeroMemory( aHTMLFmtHdr, sizeof( aHTMLFmtHdr ) );
memset( aHTMLFmtHdr, 0, sizeof( aHTMLFmtHdr ) );
// fill the buffer with dummy values to calc the
// exact length
......@@ -318,7 +318,7 @@ Sequence< sal_Int8 > SAL_CALL TextHtmlToHTMLFormat( Sequence< sal_Int8 >& aTextH
nEndFrgmt = nEndFrgmt + lHTMLFmtHdr;
// fill the html header
rtl_zeroMemory( aHTMLFmtHdr, sizeof( aHTMLFmtHdr ) );
memset( aHTMLFmtHdr, 0, sizeof( aHTMLFmtHdr ) );
wsprintf(
aHTMLFmtHdr,
......@@ -327,7 +327,7 @@ Sequence< sal_Int8 > SAL_CALL TextHtmlToHTMLFormat( Sequence< sal_Int8 >& aTextH
// we add space for a trailing \0
aHTMLFmtSequence.realloc( lHTMLFmtHdr + aTextHtml.getLength( ) + 1 );
rtl_zeroMemory( aHTMLFmtSequence.getArray( ), aHTMLFmtSequence.getLength( ) );
memset( aHTMLFmtSequence.getArray( ), 0, aHTMLFmtSequence.getLength( ) );
// copy the HTML Format header
memcpy(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment