From a16418266e0cb317b2f338e5ca6e3d1aabdf67c5 Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 26 Jul 2005 19:04:19 +0000 Subject: (svn r2717) Move _userstring to strings.[ch] --- settings_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'settings_gui.c') 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; -- cgit v1.2.3-70-g09d2