Fixed: Solaris bug
This commit is contained in:
Andreas Bille 2001-06-13 12:16:11 +00:00
parent e319f460b4
commit c58e072563
2 changed files with 19 additions and 9 deletions

View file

@ -2,9 +2,9 @@
*
* $RCSfile: databases.cxx,v $
*
* $Revision: 1.9 $
* $Revision: 1.10 $
*
* last change: $Author: abi $ $Date: 2001-06-13 10:12:40 $
* last change: $Author: abi $ $Date: 2001-06-13 13:16:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -657,9 +657,15 @@ void Databases::errorDocument( const rtl::OUString& Language,
else
{
// the error file does not exist
m_nErrorDocLength = strlen( m_pErrorDoc = "<html><body>"
"The requested document does not exist in the database !!"
"</body></html>" );
const char* errorText =
"<html><body>"
"The requested document does not exist in the database !!"
"</body></html>";
m_nErrorDocLength = strlen( errorText );
m_pErrorDoc = new char[ 1 + m_nErrorDocLength ];
m_pErrorDoc[ m_nErrorDocLength ] = 0;
rtl_copyMemory( m_pErrorDoc,errorText,m_nErrorDocLength );
}
}

View file

@ -2,9 +2,9 @@
*
* $RCSfile: urlparameter.cxx,v $
*
* $Revision: 1.14 $
* $Revision: 1.15 $
*
* last change: $Author: abi $ $Date: 2001-06-13 10:12:40 $
* last change: $Author: abi $ $Date: 2001-06-13 13:16:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -718,8 +718,12 @@ InputStreamTransformer::InputStreamTransformer( URLParameter* urlParam,
SablotRegHandler( p,HLR_SCHEME,&schemeHandler,(void*)(&userData) );
rtl::OUString xslURL = pDatabases->getInstallPathAsURL();
rtl::OString xslURLascii = "file:";
xslURLascii += rtl::OString( xslURL.getStr()+6,xslURL.getLength()-6,RTL_TEXTENCODING_UTF8 );
rtl::OString xslURLascii = "file:";
#define OFFSET 5
xslURLascii += rtl::OString( xslURL.getStr()+OFFSET,
xslURL.getLength()-OFFSET,
RTL_TEXTENCODING_UTF8 );
#undef OFFSET
xslURLascii += "main_transform.xsl";
SablotRunProcessor( p,