RemotePlugin: smaller buffers for number to string conversions

There's no need for 128 bytes when converting a number to a string.
Use 64 bytes instead.
This commit is contained in:
Tobias Doerffel
2009-12-14 10:50:21 +01:00
parent fa9aeeb3b1
commit ab8f2ab7c7

View File

@@ -547,7 +547,7 @@ public:
message & addInt( int _i )
{
char buf[128];
char buf[64];
buf[0] = 0;
sprintf( buf, "%d", _i );
data.push_back( std::string( buf ) );
@@ -556,7 +556,7 @@ public:
message & addFloat( float _f )
{
char buf[128];
char buf[64];
buf[0] = 0;
sprintf( buf, "%f", _f );
data.push_back( std::string( buf ) );