diff options
author | tron <tron@openttd.org> | 2005-07-26 19:04:19 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-07-26 19:04:19 +0000 |
commit | a16418266e0cb317b2f338e5ca6e3d1aabdf67c5 (patch) | |
tree | dbb913c2b20dd2004ca5b9c2607ba47217ab2ca4 /settings_gui.c | |
parent | 7e65f441689917d9d476bc458dec303a0d4e4b7c (diff) | |
download | openttd-a16418266e0cb317b2f338e5ca6e3d1aabdf67c5.tar.xz |
(svn r2717) Move _userstring to strings.[ch]
Diffstat (limited to 'settings_gui.c')
-rw-r--r-- | settings_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings_gui.c b/settings_gui.c index cc3b22555..17a6a67bf 100644 --- a/settings_gui.c +++ b/settings_gui.c @@ -1199,7 +1199,7 @@ static void NewgrfWndProc(Window *w, WindowEvent *e) // draw grf id x = DrawString(5, 209, STR_NEWGRF_GRF_ID, 0); - snprintf(_userstring, USERSTRING_LEN, "%08X", _sel_grffile->grfid); + snprintf(_userstring, lengthof(_userstring), "%08X", _sel_grffile->grfid); DrawString(x + 2, 209, STR_SPEC_USERSTRING, 0x01); } } break; |