diff -r 2aba46745fcb -r b60b7e17db62 src/genworld_gui.cpp --- a/src/genworld_gui.cpp Wed Oct 22 17:26:40 2008 +0000 +++ b/src/genworld_gui.cpp Wed Oct 22 19:12:10 2008 +0000 @@ -255,6 +255,7 @@ { this->LowerWidget(_settings_newgame.game_creation.landscape + GLAND_TEMPERATE); + /* snprintf() always outputs trailing '\0', so whole buffer can be used */ snprintf(this->edit_str_buf, this->edit_str_size, "%u", _settings_newgame.game_creation.generation_seed); InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size, 120); this->caption = STR_NULL;