summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-06-16 12:44:08 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-06-16 12:44:08 +0000
commit6378a5b0ae62416432b0af49a60d079fc4456fe6 (patch)
tree6e076755db26de6c4bc3eb0993bee5b069e2f161
parent07a3d8ea61db16226f1045859acfe0fd5d56121b (diff)
INTEGRATION: CWS hr51 (1.4.10); FILE MERGED
2008/06/06 13:56:35 hr 1.4.10.1: #i88947#: fixes for compiling with SunStudio12 (WaE, compiler provided STL)
-rw-r--r--psprint/inc/psprint/strhelper.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/psprint/inc/psprint/strhelper.hxx b/psprint/inc/psprint/strhelper.hxx
index 6bfb6c373874..5160d31a205f 100644
--- a/psprint/inc/psprint/strhelper.hxx
+++ b/psprint/inc/psprint/strhelper.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: strhelper.hxx,v $
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
* This file is part of OpenOffice.org.
*
@@ -74,7 +74,7 @@ inline int getValueOfDouble( char* pBuffer, double f, int nPrecision = 0)
{
rtl::OString aStr( rtl::math::doubleToString( f, rtl_math_StringFormat_G, nPrecision, '.', true ) );
int nLen = aStr.getLength();
- strncpy( pBuffer, aStr.getStr(), nLen+1 ); // copy string including terminating zero
+ std::strncpy( pBuffer, aStr.getStr(), nLen+1 ); // copy string including terminating zero
return nLen;
}