# HG changeset patch # User glx # Date 1213370309 0 # Node ID 7c95f8cf046582dae9032cbe7db07b49a78ab199 # Parent d4534fb0208dfab6ae936fa03735eca0d37052ab (svn r13508) -Fix (r7733): incorrect usage of strtoul diff -r d4534fb0208d -r 7c95f8cf0465 src/genworld_gui.cpp --- a/src/genworld_gui.cpp Fri Jun 13 13:28:55 2008 +0000 +++ b/src/genworld_gui.cpp Fri Jun 13 15:18:29 2008 +0000 @@ -477,7 +477,7 @@ * (use random seed) it should not be possible to be * entered into the input field; the generate seed * button can be used instead. */ - _settings_newgame.game_creation.generation_seed = minu(strtoul(this->edit_str_buf, NULL, sizeof(this->edit_str_buf) - 1), MAX_UVALUE(uint32) - 1); + _settings_newgame.game_creation.generation_seed = minu(strtoul(this->edit_str_buf, NULL, 10), MAX_UVALUE(uint32) - 1); return state; }