# HG changeset patch # User glx # Date 2008-06-13 15:18:29 # Node ID 70356cd12bb9790084fc4445040873ed934c6a6f # Parent 30fe0a2a833bd1b612884f029d0482c758ea1506 (svn r13508) -Fix (r7733): incorrect usage of strtoul diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp --- a/src/genworld_gui.cpp +++ b/src/genworld_gui.cpp @@ -477,7 +477,7 @@ struct GenerateLandscapeWindow : public * (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; }