summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-14 11:58:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-14 15:19:49 +0100
commit1ed472827bb0a6a3c640ea892290ea59760f6044 (patch)
treebd7e4e8b8878af01193e43fc3f6350afa6735f07 /tools
parente881c80269d503f66fdc56fbc54875ec05379783 (diff)
can shrink these buffers to minimum required
Diffstat (limited to 'tools')
-rw-r--r--tools/source/stream/stream.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index 99acaffa0f1f..bf0c2f49b24c 100644
--- a/tools/source/stream/stream.cxx
+++ b/tools/source/stream/stream.cxx
@@ -1938,7 +1938,7 @@ void SvStream::RefreshBuffer()
SvStream& SvStream::WriteNumber(sal_Int32 nInt32)
{
- char buffer[256+12];
+ char buffer[12];
sal_Size nLen = sprintf(buffer, "%"SAL_PRIdINT32, nInt32);
Write(buffer, nLen);
return *this;
@@ -1946,7 +1946,7 @@ SvStream& SvStream::WriteNumber(sal_Int32 nInt32)
SvStream& SvStream::WriteNumber(sal_uInt32 nUInt32)
{
- char buffer[256+12];
+ char buffer[11];
sal_Size nLen = sprintf(buffer, "%"SAL_PRIuUINT32, nUInt32);
Write(buffer, nLen);
return *this;