diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-03-26 16:32:47 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-03-26 16:32:47 +0000 |
commit | caf5f668e4ca335b6ae3cc7138411cb2b2c5ef97 (patch) | |
tree | 7e88f8a0cce2925b50486de38b6bedcf9093963f /sax | |
parent | MWS_SRX644: migrate branch mws_srx644 -> HEAD (diff) | |
download | core-caf5f668e4ca335b6ae3cc7138411cb2b2c5ef97.tar.gz core-caf5f668e4ca335b6ae3cc7138411cb2b2c5ef97.zip |
MWS_SRX644: migrate branch mws_srx644 -> HEAD
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/expatwrap/saxwriter.cxx | 6 | ||||
-rw-r--r-- | sax/test/sax/testsax.cxx | 4 | ||||
-rw-r--r-- | sax/test/sax/testwriter.cxx | 6 | ||||
-rw-r--r-- | sax/test/saxdemo.cxx | 6 |
4 files changed, 11 insertions, 11 deletions
diff --git a/sax/source/expatwrap/saxwriter.cxx b/sax/source/expatwrap/saxwriter.cxx index fb1f87d81831..dafb0ba6478c 100644 --- a/sax/source/expatwrap/saxwriter.cxx +++ b/sax/source/expatwrap/saxwriter.cxx @@ -2,9 +2,9 @@ * * $RCSfile: saxwriter.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: sab $ $Date: 2001-12-12 09:23:09 $ + * last change: $Author: hr $ $Date: 2003-03-26 17:32:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -534,7 +534,7 @@ inline void SaxWriterHelper::insertIndentation(sal_uInt32 m_nLevel) throw( SAXEx pBytes[0] = LINEFEED; memset( &(pBytes[1]), 32, m_nLevel ); AddBytes(mp_Sequence, nCurrentPos, pBytes, nCount); - delete pBytes; + delete[] pBytes; nLastLineFeedPos = nCurrentPos - nCount; if (nCurrentPos == SEQUENCESIZE) nCurrentPos = writeSequence(); diff --git a/sax/test/sax/testsax.cxx b/sax/test/sax/testsax.cxx index e7946b9ab2a3..d2d0df8d2bd4 100644 --- a/sax/test/sax/testsax.cxx +++ b/sax/test/sax/testsax.cxx @@ -2,9 +2,9 @@ * * $RCSfile: testsax.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: jbu $ $Date: 2002-05-15 16:35:37 $ + * last change: $Author: hr $ $Date: 2003-03-26 17:32:46 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses diff --git a/sax/test/sax/testwriter.cxx b/sax/test/sax/testwriter.cxx index 89e1de587b84..e70fda849fc7 100644 --- a/sax/test/sax/testwriter.cxx +++ b/sax/test/sax/testwriter.cxx @@ -2,9 +2,9 @@ * * $RCSfile: testwriter.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: jbu $ $Date: 2002-05-15 16:35:38 $ + * last change: $Author: hr $ $Date: 2003-03-26 17:32:47 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -96,7 +96,7 @@ class OFileWriter : public WeakImplHelper1< XOutputStream > { public: - OFileWriter( char *pcFile ) { strcpy( m_pcFile , pcFile ); m_f = 0; } + OFileWriter( char *pcFile ) { strncpy( m_pcFile, pcFile, 256 - 1 ); m_f = 0; } public: diff --git a/sax/test/saxdemo.cxx b/sax/test/saxdemo.cxx index f1ba17c5a870..1ad4719b3663 100644 --- a/sax/test/saxdemo.cxx +++ b/sax/test/saxdemo.cxx @@ -2,9 +2,9 @@ * * $RCSfile: saxdemo.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: jbu $ $Date: 2002-05-15 16:36:00 $ + * last change: $Author: hr $ $Date: 2003-03-26 17:32:45 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -479,7 +479,7 @@ class OFileWriter : public WeakImplHelper1< XOutputStream > { public: - OFileWriter( char *pcFile ) { strcpy( m_pcFile , pcFile ); m_f = 0; } + OFileWriter( char *pcFile ) { strncpy( m_pcFile , pcFile, 256 - 1 ); m_f = 0; } public: |