diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-14 11:58:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-14 15:19:49 +0100 |
commit | 1ed472827bb0a6a3c640ea892290ea59760f6044 (patch) | |
tree | bd7e4e8b8878af01193e43fc3f6350afa6735f07 /tools | |
parent | e881c80269d503f66fdc56fbc54875ec05379783 (diff) |
can shrink these buffers to minimum required
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/stream/stream.cxx | 4 |
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; |