diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-03-27 11:01:26 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-03-27 11:01:26 +0000 |
commit | 414c097c65bb7925eef9ddc158b112228b49ed12 (patch) | |
tree | de9571ec116da8f9a4c0033c55a7ad6c4fb890c5 /stoc/test/testintrosp.cxx | |
parent | 45bb07d39bdd63e741b4fe692a3a0d421a642a79 (diff) |
MWS_SRX644: migrate branch mws_srx644 -> HEAD
Diffstat (limited to 'stoc/test/testintrosp.cxx')
-rw-r--r-- | stoc/test/testintrosp.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stoc/test/testintrosp.cxx b/stoc/test/testintrosp.cxx index 7fe0d8c45606..f3aaa4b02fcf 100644 --- a/stoc/test/testintrosp.cxx +++ b/stoc/test/testintrosp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: testintrosp.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: hr $ $Date: 2002-08-19 14:16:58 $ + * last change: $Author: hr $ $Date: 2003-03-27 12:01:25 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -201,7 +201,7 @@ OUString AnyToString( const Any& aValue, sal_Bool bIncludeType, const Reference< { float f; aValue >>= f; - sprintf( pBuffer, "%f", f ); + snprintf( pBuffer, sizeof( pBuffer ), "%f", f ); aRetStr = OUString( pBuffer, strlen( pBuffer ), RTL_TEXTENCODING_ASCII_US ); break; } @@ -209,7 +209,7 @@ OUString AnyToString( const Any& aValue, sal_Bool bIncludeType, const Reference< { double d; aValue >>= d; - sprintf( pBuffer, "%f", d ); + snprintf( pBuffer, sizeof( pBuffer ), "%f", d ); aRetStr = OUString( pBuffer, strlen( pBuffer ), RTL_TEXTENCODING_ASCII_US ); break; } |