From ab8f2ab7c7da44e8415563afeb385e15ec54ecb5 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Mon, 14 Dec 2009 10:50:21 +0100 Subject: [PATCH] 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. --- include/RemotePlugin.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/RemotePlugin.h b/include/RemotePlugin.h index b4c112ef1..900c8974e 100644 --- a/include/RemotePlugin.h +++ b/include/RemotePlugin.h @@ -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 ) );