settings_gui.c
changeset 2307 63e18261a7e7
parent 2306 3d4efe849dd9
child 2454 3ef0a00b03da
--- a/settings_gui.c	Sun Aug 07 12:41:57 2005 +0000
+++ b/settings_gui.c	Sun Aug 07 14:18:17 2005 +0000
@@ -1319,7 +1319,7 @@
 	DrawStringCentered(x+15, y+1, STR_681A, 0);
 }
 
-char _str_separator[2];
+static char _str_separator[2];
 
 static void CustCurrencyWndProc(Window *w, WindowEvent *e)
 {
@@ -1467,7 +1467,7 @@
 				break;
 				case 1: /* Thousands seperator */
 					_custom_currency.separator = (b[0] == '\0') ? ' ' : b[0];
-					ttd_strlcpy(_str_separator, b, 16);
+					ttd_strlcpy(_str_separator, b, lengthof(_str_separator));
 				break;
 				case 2: /* Currency prefix */
 					ttd_strlcpy(_custom_currency.prefix, b, lengthof(_custom_currency.prefix));