diff --git a/settings_gui.c b/settings_gui.c index 53c4ba585d..408c3cc80e 100644 --- a/settings_gui.c +++ b/settings_gui.c @@ -1414,12 +1414,12 @@ static void CustCurrencyWndProc(Window *w, WindowEvent *e) break; } - if(edittext) { + if (edittext) { WP(w,def_d).data_2 = line; ShowQueryString( str, STR_CURRENCY_CHANGE_PARAMETER, - len, // maximum number of characters OR + len + 1, // maximum number of characters OR 250, // characters up to this width pixels, whichever is satisfied first w->window_class, w->window_number);