--- a/genworld_gui.c Mon Nov 06 22:06:29 2006 +0000
+++ b/genworld_gui.c Tue Nov 07 12:03:34 2006 +0000
@@ -320,7 +320,7 @@
break;
case 16: // Random seed
_patches_newgame.generation_seed = InteractiveRandom();
- ttd_strlcpy(_edit_str_buf, str_fmt("%u", _patches_newgame.generation_seed), lengthof(_edit_str_buf));
+ snprintf(_edit_str_buf, lengthof(_edit_str_buf), "%u", _patches_newgame.generation_seed);
UpdateTextBufferSize(&WP(w, querystr_d).text);
SetWindowDirty(w);
break;
@@ -506,7 +506,7 @@
if (w != NULL) {
querystr_d *querystr = &WP(w, querystr_d);
- ttd_strlcpy(_edit_str_buf, str_fmt("%u", _patches_newgame.generation_seed), lengthof(_edit_str_buf));
+ snprintf(_edit_str_buf, lengthof(_edit_str_buf), "%u", _patches_newgame.generation_seed);
InitializeTextBuffer(&querystr->text, _edit_str_buf, lengthof(_edit_str_buf), 120);
querystr->caption = STR_NULL;