medfall

A super great game engine
Log | Files | Refs

commit 41a981b19860ac029c2544b2f252623f9b94857a
parent 482d4f73e604889012c9a16a682e48655e51e35a
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Thu, 28 Dec 2017 09:42:14 +0000

Tiny simplification

Diffstat:
dynstr.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dynstr.h b/dynstr.h @@ -40,7 +40,7 @@ public: void appendf( const char * fmt, const Rest & ... rest ) { size_t len = ggformat( NULL, 0, fmt, rest... ); size_t old_len = length(); - buf.extend( old_len == 0 ? len + 1 : len ); + buf.resize( old_len + len + 1 ); ggformat( &buf[ old_len ], len + 1, fmt, rest... ); }